v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

triggersmartcontract

Returns TransactionExtention, which contains the unsigned Transaction.

post/node/v1/tron/mainnet/{apiKey}/wallet/triggersmartcontract

Path parameters

apiKeystring required

please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>

Request body

owner_addressstring required

Address that triggers the contract, converted to a hex string

contract_addressstring required

Contract address, converted to a hex string

function_selectorstring

Function call, must not be left blank

parameterstring

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.

fee_limitinteger

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

call_valueinteger

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

visibleboolean required

Optional.Whehter the address is in base58 format.

Response

200

transactionobject

Transaction object - JSON object: Unsigned transaction