Account States
TheaccountStates endpoint queries account states from the TON blockchain, including historical state data. This endpoint provides detailed information about account balances, status, and optionally the code and data cells.
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.
TON pricing is the same for full, archive, v2, v3There’s no difference between a full node an archive node in data availability or pricing.
All data is always available and all node requests are consumed as 1 request unit.
Parameters
account_address(string, optional) — Account address to query.include_boc(boolean, optional) — Include code and data BoC in response. Default:false.limit(integer, optional) — Maximum number of states to return. Default:10.offset(integer, optional) — Number of states to skip for pagination. Default:0.sort(string, optional) — Sort order:ascordesc. Default:desc.
Response
-
account_states(array) — Array of account state objects:account(string) — Account address.hash(string) — State hash.balance(string) — Account balance in nanotons.account_status(string) — Account status (active,uninit,frozen).last_trans_lt(integer) — Logical time of last transaction.last_trans_hash(string) — Hash of last transaction.frozen_hash(string) — Hash if account is frozen.code_hash(string) — Hash of the code cell.data_hash(string) — Hash of the data cell.code_boc(string) — Code BoC (ifinclude_bocis true).data_boc(string) — Data BoC (ifinclude_bocis true).
-
address_book(object) — Address book mapping.
Use case
TheaccountStates endpoint is useful for applications that need detailed account information:
- Block explorers displaying account history and state changes.
- Smart contract analysis tools examining code and data.
- Wallet applications showing detailed account information.
- Auditing tools tracking account state over time.
- Research applications studying account behavior patterns.
Query Parameters
Account address to query
Include account state BoC in response
Maximum number of states to return
Number of states to skip
Sort order
Available options:
asc, desc