Usage
Parameters
The address of the smart contract to interact with.
The name of the smart contract function to call.
The parameters to pass to the smart contract function. Should be an empty array if no parameters are needed.
The amount of native currency (ETH, POL, etc.) to send with the transaction. Specify ‘0’ if no native token is transferred.
The contract standard if any (e.g., ‘ERC20’).
If your Mini App supports multiple chains, you can specify the chain id to use.
Returns
Returns
The result of the smart contract call attempt.
SUCCESS: The smart contract call was successful.FAILED: The smart contract call failed.CANCELLED: The smart contract call was cancelled by the user.
Contains the transaction hash of the smart contract call transaction. Only present when the result is
SUCCESS.txHash: The transaction hash.
Contains the error information when the smart contract call fails. Only present when the result is
FAILED.message: The error message.code: The error code.