POSTGet wallet information

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getWalletInformation
CU60

Returns wallet-specific information for an address. If the address is a known wallet contract, returns the wallet type, current seqno (needed for sending transactions), and wallet_id. Always check wallet: true before using wallet-specific fields. Call this before sending any transaction to get the current seqno.

Request Body
addressstringrequired

Account address in raw format (e.g., 0:ca6e321c...) or user-friendly format (e.g., EQDKbjIcfM...). All formats are automatically detected.

seqnostring

Masterchain block sequence number. Query the account state as it was at this block height. If omitted, returns the current state.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

@typestring (enum)required

TonLib type identifier for wallet info responses. Refer to the TonLib type reference for a full list.

walletbooleanrequired

Returns true if this address is a recognized wallet contract type; otherwise false.

balancestringrequired

Account balance in nanograms as a decimal string.

account_statestring (enum)required

Account lifecycle state: uninitialized, active, or frozen.

last_transaction_idobjectrequired

Reference to the most recent transaction. Use as starting point for getTransactions.

@typestring (enum)required

TonLib type identifier for transaction ID references. Refer to the TonLib type reference for a full list.

ltstringrequired

Logical time of the transaction. Use together with its hash for pagination and lookups.

hashstringrequired

SHA-256 hash of this transaction, encoded in base64.

wallet_typestring (enum)

Recognized wallet contract type, such as wallet v4 r2, wallet v5 r1, or tg-wallet.

seqnointeger (int64)

Wallet contract sequence number. Used for replay protection: each outgoing transaction must include the current seqno and increments it by 1. Fetch the current value before sending a transaction.

wallet_idinteger

Subwallet ID for v3+ wallets. Allows creating multiple wallets from one key. The default value is 0x29a9a317 (698983191) on both mainnet and testnet, derived from the first 4 bytes of the TON mainnet initial state hash. Note: v5 wallets use a different scheme with network-specific values to prevent cross-network transaction replay. Refer to the wallet interaction guide for full details.

is_signature_allowedboolean

Whether signature authentication is enabled for this wallet (v5 wallets only).

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X POST "https://ton-mainnet.nodit.io/api/v2/getWalletInformation" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN"
  }'
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "ext.accounts.walletInformation",
    "wallet": true,
    "balance": "750551101",
    "account_state": "active",
    "last_transaction_id": {
      "@type": "internal.transactionId",
      "lt": "119175390000011",
      "hash": "C7wzkIjnoos2+Ar+8AdwpZnDKY9PW59Ic1NwqQ1EWcU="
    },
    "wallet_type": "wallet v4 r2",
    "seqno": 305,
    "wallet_id": 698983191
  },
  "@extra": "1795684371:14:13.934"
}