TriggerSmartContract

Returns TransactionExtention, which contains the unsigned Transaction

This endpoint supports both POST and GET methods.

Body Params
string
required
Defaults to TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g

Address that triggers the contract, converted to a hex string.

string
required
Defaults to TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

Contract address, converted to a hex string

string
Defaults to transfer(address,uint256)

Function call, must not be left blank

string
Defaults to 00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032

Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.

string

The data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred

int32
required
Defaults to 1000000000

Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).

int64
Defaults to 0

Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).

int64

Amount of TRC10 token transferred with this transaction

int64

TRC10 token id

int32

Optional, for multi-signature

boolean
Defaults to true

Optional. Whehter the address is in base58check format.

Responses

Language
Credentials
Header
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json