Skip to main content

/wallet/gettransactioninfobyid REST API Endpoint

Returns the transaction fee, block height by transaction id.

Updated on
Oct 4, 2023

/wallet/gettransactioninfobyid REST API Endpoint

Body Parameters

value
string
REQUIRED
The transaction hash or transaction id

Returns

id
The transaction ID
fee
The fee paid for the transaction
blockNumber
The block number where the transaction was included
blockTimeStamp
The timestamp of the block where the transaction was included
contractResult
An array containing the contract result data
contract_address
The address of the contract associated with the transaction
receipt
The receipt information of the transaction, including:
result
The result of the transaction
net_fee
The net fee for the transaction
energy_fee
The energy fee paid for the transaction
energy_usage
The energy usage
energy_usage_total
The total energy usage for the transaction
internal_transactions
An array of internal transactions related to the transaction, each containing the following fields:
caller_address
The caller address of the internal transaction
note
A note associated with the internal transaction
transferTo_address
The address the internal transaction is transferred to
callValueInfo
An array containing the call value information, which includes the following fields
callValue
The value of the cal
hash
The hash of the internal transaction
log
An array of logs related to the transaction, each containing the following fields:
address
The address associated with the log
data
The data associated with the log
topics
An array of topics associated with the lo
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactioninfobyid \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc"
7
}
8
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free