POST GetTransactionById
/wallet/gettransactionbyid
Parameters/Body:
{"value":"<TRANSACTION_HASH>"}
This call overrides standard Tron Protocol call to a Tron node in the following way:
- In case transaction exists in a blockchain, the response of a Tron node is delivered without any modifications.
- In case transaction is not in blockchain yet, and was sent with extended
expiration
parameter, it is stored in a temporary transaction storage inside Transatron. When this is the case, Transatron returns it's status from this storage. It can be one of the following:PENDING
: Transaction is in the internal temporary storage and is waiting for processing.PROCESSING
: Transaction is in the internal temporary storage, but is being processed now (there can be a bunch of transactions like that, so processing might take time).PROCESSED
: Transaction is processed and is sent to a blockchain. This status is almost never returned, because when transaction is processed, it's already in blockchain and original payload fron Tron node is returned instead.
Example of the returned object:
{
"ret":
[
{
"contractRet": "PROCESSING"
}
],
"signature":
[
"1c6b3e<...>7bb101"
],
"txID": "561<...>490",
"raw_data":
{
"contract":
[
{
"parameter":
{
"value":
{
"data": "a9059cbb0000<...>80",
"owner_address": "417<...>57",
"contract_address": "41a6<...>d13c"
},
"type_url": "type.googleapis.com/protocol.TriggerSmartContract"
},
"type": "TriggerSmartContract"
}
],
"ref_block_bytes": "26ca",
"ref_block_hash": "7<...>0",
"expiration": 1750000000000,
"fee_limit": 27391350,
"timestamp": 1740000000000
},
"raw_data_hex": "0a<...>d"
}