Skip to main content

/wallet/getblockbalance REST API Endpoint

Returns all balance change operations in a block.

Updated on
Oct 4, 2023

/wallet/getblockbalance REST API Endpoint

Body Parameters

hash
string
REQUIRED
The block hash
number
integer
REQUIRED
The block number
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

timestamp
The timestamp associated with the block
block_identifier
The block identifier object which has the following fields:
hash
The block hash
number
The block number
transaction_balance_trace
The list of transaction information with balance changes, which contain following fields:
transaction_identifier
The transaction hash
operation
The operation list contains the balance change operations involved in this transaction. Each operation contains the following fields: operation_identifier: operation identifier, int64 type; address: address, string type; amount: amount of balance increase or decrease, int64 type
type
The transaction type
status
The transaction result
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblockbalance \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"hash": "BLOCK_HASH",
7
"number": BLOCK_NUMBER,
8
"visible": true
9
}
10
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free