Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
account_identifier.address— the account address to query. Use base58 withvisible: true, or hex withvisible: false.block_identifier— required object specifying the block to query. Provide both the 32‑bytehash(64 hex chars) and the matchingnumber.visible— optional boolean for address format. Default isfalse(hex).
Response
balance— available TRX balance (in sun, where 1 TRX = 1,000,000 sun)frozen— array of frozen balance informationfrozen_balance— amount of TRX frozenexpire_time— expiration timestamp for frozen balance
delegated_frozenV2— delegated frozen balance information for v2 stakingundelegated_frozenV2— undelegated frozen balance information for v2 staking
Use case
Thewallet/getaccountbalance method is used for:
- Checking available TRX balance for transactions and transfers.
- Monitoring frozen balance and staking information.
- Analyzing delegated resource allocations.
- Managing account liquidity and resource planning.
curl examples
Get current balance with a base58 address (at a specific block):Shell
Shell
- avoid
INVALID hex Stringby providing a real 32‑byte block hash (64 hex chars). - avoid
account_identifier is nullby passingaccount_identifier: { address: ... }rather than a top‑leveladdress. - avoid
block_identifier nullandhash length not equals 32by always includingblock_identifier.hashwith 64 hex chars, andblock_identifier.numberthat matches the same block.
find a valid block hash
Usewallet/getnowblock to fetch the latest block and copy the blockID field as the block_identifier.hash value.Shell
wallet/getblockbynum and use its blockID.working example (auto picks latest block)
Run this to fetch the latestblockID, resolve its block number, and immediately query the balance at that block.Shell
jq is not available, use Python instead:Shell
Body
application/json