Skip to main content

/wallet/gettransactioninfobyblocknum REST API Endpoint

Returns the TransactionInfo data of all transactions contained in the block of the specified height.

Updated on
Oct 4, 2023

/wallet/gettransactioninfobyblocknum REST API Endpoint

Body Parameters

num
integer
REQUIRED
The block number

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/gettransactioninfobyblocknum \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"num": 1000000
7
}
8
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free