curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyid \
--header 'Content-Type: application/json' \
--data '{
"value": "4c85b7a5c6e1d5f6e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7"
}'
{
"id": "<string>",
"blockNumber": 123,
"blockTimeStamp": 123,
"contractResult": [
"<string>"
],
"contract_address": "<string>",
"receipt": {
"energy_usage": 123,
"energy_fee": 123,
"origin_energy_usage": 123,
"energy_usage_total": 123,
"net_usage": 123,
"net_fee": 123,
"result": "<string>"
},
"log": [
{}
],
"result": "<string>",
"resMessage": "<string>"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyid \
--header 'Content-Type: application/json' \
--data '{
"value": "4c85b7a5c6e1d5f6e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7"
}'
{
"id": "<string>",
"blockNumber": 123,
"blockTimeStamp": 123,
"contractResult": [
"<string>"
],
"contract_address": "<string>",
"receipt": {
"energy_usage": 123,
"energy_fee": 123,
"origin_energy_usage": 123,
"energy_usage_total": 123,
"net_usage": 123,
"net_fee": 123,
"result": "<string>"
},
"log": [
{}
],
"result": "<string>",
"resMessage": "<string>"
}
value
— the transaction ID (hash) in hexadecimal formatid
— transaction ID (hash)blockNumber
— block number where the transaction was includedblockTimeStamp
— timestamp when the block was created (milliseconds)contractResult
— array of smart contract execution results in hex formatcontract_address
— address of the deployed contract (for contract creation transactions)receipt
— transaction receipt containing:
energy_usage
— total energy consumed by the transactionenergy_fee
— energy fee paid in SUN (1 TRX = 1,000,000 SUN)origin_energy_usage
— original energy usage before optimizationsenergy_usage_total
— total energy usage including all operationsnet_usage
— bandwidth consumed by the transactionnet_fee
— bandwidth fee paid in SUNresult
— execution result status (SUCCESS, REVERT, etc.)log
— array of event logs emitted by smart contracts during executionresult
— overall transaction execution resultresMessage
— error message if transaction failed (hex-encoded)wallet/gettransactioninfobyid
method is used for:
Transaction receipt and execution information
The response is of type object
.