HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

TriggerSmartContract

Returns a TransactionExtention object, which encapsulates the unsigned transaction data.

Note:
Reference examples for encoding and decoding ABI parameters: Parameter and return value encoding and decoding

Returns

Returned Object: Transaction (Unsigned).

General Fields: Refer to the Transaction section.

TriggerSmartContract Specific Fields: The raw_data.contract[0].parameter.value within the transaction contains parameters for the contract invocation:

FieldTypeDescription
owner_addressstringTransaction initiator address.
contract_addressstringContract address.
call_valueint64Amount of TRX transferred into the contract in this call. (Unit: sun)
datastringFunction call data, containing the function selector and encoded parameters, specifying which function to execute and how. (Format: hex string)
call_token_valueint64Amount of TRC-10 token transferred into the contract.
token_idint64TRC-10 token id transferred into the contract.
Language
Click Try It! to start a request and see the response here!