GETGet account states

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/accountStates
CU60

Query account states that match the specified filters.

Query Parameters
addressstring[]required

List of addresses in any form. Maximum: 1000 addresses.

include_bocboolean

Include code and data BoCs. Defaults to true.

code_hashstring[]

Filter the requested addresses by contract code hash. Repeat the parameter to supply multiple hashes.

Responses
account_state_hashstring

Hash of the current account state, base64 encoded.

addressstring

Account address in raw format workchain:hex.

balancestring

Account balance in nanograms, as a decimal string.

code_bocstring

Smart contract code serialized as a BoC, base64 encoded. Returned only when include_boc is true.

code_hashstring

Hash of the smart contract code cell, base64 encoded.

contract_methodsinteger[]

IDs of the methods detected in the smart contract code, as integers.

data_bocstring

Smart contract persistent data serialized as a BoC, base64 encoded. Returned only when include_boc is true.

data_hashstring

Hash of the smart contract data cell, base64 encoded.

extra_currenciesobject

Extra currency balances held by the account, as a map from currency ID to amount (decimal string). Empty when the account holds no extra currencies.

frozen_hashstring

Hash of the frozen account state, base64 encoded. Present only for frozen accounts.

interfacesstring[]

Contract interfaces detected for the account, for example wallet_v4r2.

last_transaction_hashstring

Hash of the most recent transaction of the account, base64 encoded.

last_transaction_ltstring

Logical time (lt) of the most recent transaction of the account, as a decimal string.

Example: 0

statusstring

Account status: uninit, active, frozen, or nonexist.

suspendedboolean

Whether the account has been suspended by a governance decision.

{address}object

Address book entry. The key is an address that appears in the response, in raw format workchain:hex.

domainstring

TON DNS domain linked to the address. null when no domain is associated.

interfacesstring[]

Contract interfaces detected for the address, for example wallet_v4r2. Can be null or empty when none are detected.

user_friendlystring

Address in user-friendly base64url format.

{address}object

Metadata entry. The key is the address of the token contract, in raw format workchain:hex.

is_indexedboolean

Whether the metadata for this address has been indexed. When false, token_info may not be available yet.

token_infoobject[]

List of token metadata entries (Jetton, NFT collection, or NFT item) associated with the address.

descriptionstring

Description of the token from its metadata.

extraobject

Additional metadata fields that are not covered by the other properties, for example decimals, uri, and resized image URLs.

imagestring

URL of the token image from its metadata.

is_nsfwboolean

Whether the token is flagged as NSFW (not safe for work) content.

is_scamboolean

Whether the token is flagged as a scam.

namestring

Name of the token from its metadata.

nft_indexstring

Index of the NFT item within its collection, as a decimal string. Present only for NFT items.

symbolstring

Ticker symbol of the token from its metadata. Present for Jettons.

typestring

Kind of token contract the metadata belongs to, for example jetton_masters, nft_collections, or nft_items.

validboolean

Whether the token metadata was retrieved and parsed successfully.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/accountStates?address=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN&include_boc=false" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "accounts": [
    {
      "address": "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8",
      "account_state_hash": "1mkbFYDXhcaqaxvw7ROJ1jRzjwI1aWXkz2CWqRGac0A=",
      "balance": "450160030",
      "extra_currencies": {},
      "status": "active",
      "last_transaction_hash": "RstqIOXPnun8qlq22k20gYz3C0rWFJG844ogiHhM4jc=",
      "last_transaction_lt": "119175459000033",
      "data_hash": "E34gdzm5mNwgB8zvOgeJRB6rU0Q9IHufT9EsOgCXGjE=",
      "code_hash": "/rX/aCDi/w2Ug+fg1iyBfYRniftK5YDIeIZtlZ2r1cA=",
      "contract_methods": [
        0,
        76407
      ],
      "interfaces": [
        "wallet_v4r2"
      ]
    }
  ],
  "address_book": {
    "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8": {
      "user_friendly": "UQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqAaI",
      "domain": null,
      "interfaces": [
        "wallet_v4r2"
      ]
    }
  },
  "metadata": {}
}