(Deprecated) Initiate Contract Call

Changed on

Call a Smart Contract function - Your application must be "DeFi" enabled to use this feature.

post/wallets/send/contract

Request

  • Base URL
    https://www.sandbox.striga.com/api/v1
  • URL
    https://www.sandbox.striga.com/api/v1/wallets/send/contract
  • Auth
    API key in header api-key and API key in header Authorization

Headers

api-keystring required

api-key is available on the dashboard

Authorizationstring required

Request body

applicationIdstring required

Your unique application ID

sourceAccountIdstring required

The Id of the account to call the contract from. Must have permissions = "DEFI"

whitelistedAddressIdstring required

The Id of the whitelisted smart contract destination

amountstring required

An amount to be sent in this function call, denominated in the smallest divisible unit of base asset - wei. Use '0' if you do not want to send an amount.

currencystring required

The currency to be used for this function call.

networkstring required

The blockchain network to be used for this function call. The network must be one of ETH or BSC currently.

gasPricestring

Optional gas price (in wei) for your contract call. If specified, both gasPrice and gasLimit must be set.

gasLimitstring

Optional gasLimit for your contract call. If specified, both gasPrice and gasLimit must be set.

contractCallDatastring required

Hex encoded data string for your function call. See the example in the "Moving Money Around" section for more info.

relatedTransactionIdstring required

The transaction ID related to this DeFi transaction, i.e. the ID of the on-chain transaction that led to funds being available in the "DeFi" account. This is the transaction ID returned by Striga, NOT the transaction hash on the blockchain

approveAmountstring required

Amount expected to be utilized in this transaction (In smallest divisible currency units)

Response

200

idstring
statusstring

Example response

{
  "id": "011b9488-819b-495f-b178-387b6486e25b",
  "status": "QUEUED"
}

Changes