post https://api.shasta.trongrid.io/wallet/triggersmartcontract
Returns TransactionExtention, which contains the unsigned Transaction
Note:
ABI rules
Example: Parameter and return value encoding and decoding
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is TriggerSmartContract
, the fields contained in raw_data.contract[0].parameter.value
in the transaction are as follows:
Field | Type | Description |
---|---|---|
owner_address | string | Account address |
contract_address | string | Contract address |
call_value | int64 | The amount of TRX passed into the contract |
data | string | Operating parameters |
call_token_value | int64 | The amount of TRC-10 transferred into the contract |
token_id | int64 | TRC-10 token id |