Skip to main content

/wallet/getaccountbalance REST API Endpoint

Get the account balance in a specific block.

Updated on
Apr 3, 2024

/wallet/getaccountbalance REST API Endpoint

Body Parameters

account_identifier
object
REQUIRED
The account identifier object which contains the following fields:
address
string
The account address
block_identifier
object
REQUIRED
The block identifier object which contains the following fields:
hash
string
The block hash
number
integer
The block number
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

balance
Indicates the balance associated with the account
block_identifier
The block identifier object which contains the following fields:
hash
The block hash
number
The block number
Request
1
curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"account_identifier": {
6
"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"
7
},
8
"block_identifier": {
9
"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",
10
"number": 68682
11
},
12
"visible": true
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free