POSTbuildTransaction
https://tron-mainnet.nodit.io/Creates an unsigned TRON transaction. The combination of fields you provide determines the transaction type, and each type requires different parameters.
- TransferContract: Transfers TRX. (
from,to,value) - TransferAssetContract: Transfers a TRC-10 token. (
from,to,tokenId,tokenValue) - CreateSmartContract: Deploys a smart contract. (
from,name,gas,abi,data) - TriggerSmartContract: Calls a smart contract function. (
from,to,data,gas)
It contains following parameter in order:
transactionObject: The transaction to create, as an object. (required) Because the required fields differ by transaction type, choose one of the four variants below.
The address of the account sending the transaction.
The address of the account that will receive the TRX.
The amount of TRX to transfer, in sun, passed in hexadecimal.
Whether addresses are shown in Base58 form.
The transaction ID.
The address of the contract to be created when the transaction creates one.
The raw data of the transaction.
The list of contracts included in the transaction.
The contract type. (e.g.) TransferContract, TriggerSmartContract
The parameters specific to the contract type.
The URL that identifies the contract type.
The parameter value, whose layout depends on the contract type.
The lower 2 bytes of the reference block number.
Part of the reference block hash.
The transaction expiration time, in milliseconds.
The transaction creation time, in milliseconds.
The maximum fee allowed for contract execution, in sun.
The raw data hex-encoded. This is the data that gets signed.