GETGet wallet states

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

Query wallet information for the specified addresses.

Query Parameters
addressstring[]required

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

code_hashstring[]

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

Responses
{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.

addressstring

Account address in raw format workchain:hex.

balancestring

Account balance in nanograms, as a decimal string.

code_hashstring

Hash of the smart contract code of the account, in base64.

extra_currenciesobject

Extra currency balances of the account as a map from currency ID to amount, where the amount is a decimal string.

is_signature_allowedboolean

Whether signature authentication is enabled for the wallet. Present for wallet v5 only.

is_walletboolean

true if the account is a recognized wallet contract; otherwise false.

last_transaction_hashstring

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

last_transaction_ltstring

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

Example: 0

seqnointeger

Wallet sequence number (seqno). Used for replay protection: each outgoing transaction must include the current seqno, which then increases by 1.

statusstring

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

suspendedboolean

true if the account has been suspended by a governance decision; otherwise false.

wallet_idinteger

Subwallet ID of the wallet, which allows several wallets to be created from one key. Present for wallet v3 and later.

wallet_typestring

Recognized wallet contract type, such as wallet v3 r2, wallet v4 r2, or wallet v5 r1. Omitted if the account is not a recognized wallet.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/walletStates?address=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "wallets": [
    {
      "address": "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8",
      "is_wallet": true,
      "wallet_type": "wallet v4 r2",
      "seqno": 306,
      "wallet_id": 698983191,
      "balance": "450160030",
      "status": "active",
      "code_hash": "/rX/aCDi/w2Ug+fg1iyBfYRniftK5YDIeIZtlZ2r1cA=",
      "last_transaction_hash": "RstqIOXPnun8qlq22k20gYz3C0rWFJG844ogiHhM4jc=",
      "last_transaction_lt": "119175459000033"
    }
  ],
  "address_book": {
    "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8": {
      "user_friendly": "UQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqAaI",
      "domain": null,
      "interfaces": [
        "wallet_v4r2"
      ]
    }
  },
  "metadata": {}
}