TriggerSmartContract

Construct an unsigned smart-contract call transaction and return TransactionExtension for client-side signing and broadcast.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

ABI parameter encoding

The parameter field must be encoded according to the Solidity ABI rules. For examples, see the Solidity ABI specification and Parameter and return value encoding and decoding.


Related resources

Body Params
string
required

Transaction initiator address. (Format: Base58 or Hex)

string
required

Contract address. (Format: Base58 or Hex).
Example: TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

string

Function selector.
Example: transfer(address,uint256)

string

ABI-encoded function arguments only (Hex String); do not include the four-byte function selector. Addresses use the standard 20-byte ABI form without the TRON 41 network prefix.
Example: 00000000000000000000000015208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032

string

This field transmits the necessary data for smart contract interaction, including the function being called and its parameters. You may choose to use the data field, which contains the complete ABI-encoded information, or use the function_selector and parameter fields separately. Note that if both data and function_selector are present, the system will prioritize using the function_selector and parameter fields for the contract interaction.

int64
required

Caller-side Energy budget cap for this contract execution, in sun. It covers both the caller's available Energy, valued at the current Energy price, and the portion that may be paid by burning TRX. It does not include Bandwidth or other transaction fees. Example: 1000000000 (1,000 TRX)

int64
Defaults to 0

Amount of TRX transferred into the contract. (Unit: sun)

int64

Amount of TRC-10 token transferred into the contract.

int64

TRC-10 token ID

boolean

Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Responses

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