curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getaccountbalance \
--header 'Content-Type: application/json' \
--data '{
"address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"block_identifier": {
"hash": "<string>",
"number": 123
},
"visible": false
}'
{
"balance": 123,
"frozen": [
{
"frozen_balance": 123,
"expire_time": 123
}
],
"delegated_frozenV2": [
{
"type": "<string>",
"frozen_balance": 123
}
],
"undelegated_frozenV2": [
{
"type": "<string>",
"unfreeze_amount": 123,
"unfreeze_expire_time": 123
}
]
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getaccountbalance \
--header 'Content-Type: application/json' \
--data '{
"address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"block_identifier": {
"hash": "<string>",
"number": 123
},
"visible": false
}'
{
"balance": 123,
"frozen": [
{
"frozen_balance": 123,
"expire_time": 123
}
],
"delegated_frozenV2": [
{
"type": "<string>",
"frozen_balance": 123
}
],
"undelegated_frozenV2": [
{
"type": "<string>",
"unfreeze_amount": 123,
"unfreeze_expire_time": 123
}
]
}
address
— the account address to query balance information for (hex format)block_identifier
— optional block identifier to query balance at specific blockvisible
— optional boolean to specify address format (default: false for hex format)balance
— available TRX balance (in sun, where 1 TRX = 1,000,000 sun)frozen
— array of frozen balance information
frozen_balance
— amount of TRX frozenexpire_time
— expiration timestamp for frozen balancedelegated_frozenV2
— delegated frozen balance information for v2 stakingundelegated_frozenV2
— undelegated frozen balance information for v2 stakingwallet/getaccountbalance
method is used for:
Account balance information
The response is of type object
.
Was this page helpful?