GETGet extended address information

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

Returns detailed account information with parsed contract state. For recognized contract types, returns type-specific state fields. For other contracts, returns the raw state.

Query Parameters
addressstringrequired

The account address to query, in raw or user-friendly format.

seqnointeger (int32)

Query state at a specific block height. If omitted, returns the current state. Use this to look up historical data at a specific point in time.

Responses
okbooleanrequired

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

@typestring (enum)required

TonLib type identifier for extended account state responses. Refer to the TonLib type reference for a full list.

addressobjectrequired

Account address object.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

balancestringrequired

The account balance in nanograms (the smallest unit of GRAM). 1 GRAM = 1,000,000,000 nanograms (10^9), so divide by 10^9 to get the human-readable GRAM amount. Refer to the units and decimals guide for more context.

extra_currenciesobject[]required

Array of non-GRAM currency balances held by this account. Each entry contains a currency ID (integer) and balance amount (decimal string). Empty array if the account holds no extra currencies.

@typestring (enum)required

TonLib type identifier for extra currency balance entries. Refer to the TonLib type reference for a full list.

idinteger (int32)required

A 32-bit integer identifying the extra currency. Currency IDs are defined at the blockchain configuration level and stored in ConfigParam 7 of the masterchain. The extra-currency minting documentation describes the process.

amountstringrequired

Currency balance amount as a decimal string.

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.

block_idobjectrequired

Full block identifier where this event occurred.

@typestring (enum)required

TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.

workchainintegerrequired

Workchain ID: -1 for masterchain, 0 for basechain.

shardstringrequired

Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.

seqnointegerrequired

Block sequence number within its workchain and shard. For the masterchain (workchain -1), this equals the global block height. For basechain shards (workchain 0), this is the sequence number local to that specific shard, not a global height.

root_hashstringrequired

Root hash of the block. Together with file_hash, uniquely identifies a block.

file_hashstringrequired

Hash of the serialized block file. Together with root_hash, uniquely identifies a block.

sync_utimeinteger (int64)required

Unix timestamp of the block from which this data was read.

account_stateoneOfrequired

Detailed account state including contract type and internal data.

Raw account stateobject
@typestring (enum)required

TonLib type identifier for raw (unrecognized) contract states. Refer to the TonLib type reference for a full list.

codestringrequired

Smart contract code in BoC format, base64 encoded. Empty if account is uninitialized.

datastringrequired

Smart contract persistent storage in BoC format, base64 encoded.

frozen_hashstringrequired

Hash of the frozen state. Only present for frozen accounts.

Wallet v3object
@typestring (enum)required

TonLib type identifier for Wallet v3 contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

seqnointeger (int32)required

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 v4object
@typestring (enum)required

TonLib type identifier for Wallet v4 contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

seqnointeger (int32)required

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.

Highload wallet v1object
@typestring (enum)required

TonLib type identifier for Highload Wallet v1 contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

seqnointeger (int32)required

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.

Highload wallet v2object
@typestring (enum)required

TonLib type identifier for Highload Wallet v2 contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

DNS contractobject
@typestring (enum)required

TonLib type identifier for DNS resolver contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

Restricted walletobject
@typestring (enum)required

TonLib type identifier for restricted wallet contracts. Refer to the TonLib type reference for a full list.

wallet_idinteger (int64)required

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.

seqnointeger (int32)required

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.

unlocked_balanceinteger (int64)required

Balance available for immediate withdrawal, in nanograms.

configobjectrequired

Spending limits and restrictions configuration.

@typestring (enum)required

TonLib type identifier for restricted wallet configuration. Refer to the TonLib type reference for a full list.

start_atinteger (int64)required

Unix timestamp when the spending limits become active.

limitsobject[]required

Array of spending limit rules. Each entry defines a time window in seconds and the maximum spendable amount in nanograms within that window.

@typestring (enum)required

TonLib type identifier for restricted wallet spending limit rules. Refer to the TonLib type reference for a full list.

secondsinteger (int32)required

Duration of this spending limit window in seconds.

valueinteger (int64)required

Maximum spendable amount within this time period, in nanograms.

Payment channelobject
@typestring (enum)required

TonLib type identifier for payment channel contracts. Refer to the TonLib type reference for a full list.

configobjectrequired

Payment channel configuration (parties, timeouts, keys).

@typestring (enum)required

TonLib type identifier for payment channel configuration. Refer to the TonLib type reference for a full list.

alice_public_keystringrequired

Alice's Ed25519 public key for signing channel operations.

alice_addressobjectrequired

Alice's on-chain wallet address.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

bob_public_keystringrequired

Bob's Ed25519 public key for signing channel operations.

bob_addressobjectrequired

Bob's on-chain wallet address.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

init_timeoutinteger (int32)required

Maximum seconds allowed to complete channel initialization before it expires.

close_timeoutinteger (int32)required

Maximum seconds allowed to complete cooperative channel closure.

channel_idinteger (int64)required

Unique numeric identifier for this payment channel.

stateoneOfrequired

Current payment channel state (init, close, or payout phase).

object 1object
@typestring (enum)required

TonLib type identifier for payment channels in the initialization phase. Refer to the TonLib type reference for a full list.

signed_Abooleanrequired

Returns true if Alice has signed the initialization; otherwise false.

signed_Bbooleanrequired

Returns true if Bob has signed the initialization; otherwise false.

min_Ainteger (int64)required

Minimum deposit required from Alice, in nanograms.

min_Binteger (int64)required

Minimum deposit required from Bob, in nanograms.

expire_atinteger (int64)required

Unix timestamp when the initialization offer expires.

Ainteger (int64)required

Alice's deposited amount in nanograms.

Binteger (int64)required

Bob's deposited amount in nanograms.

object 2object
@typestring (enum)required

TonLib type identifier for payment channels in the closing phase. Refer to the TonLib type reference for a full list.

signed_Abooleanrequired

Returns true if Alice has signed the close proposal; otherwise false.

signed_Bbooleanrequired

Returns true if Bob has signed the close proposal; otherwise false.

min_Ainteger (int64)required

Minimum guaranteed payout for Alice, in nanograms.

min_Binteger (int64)required

Minimum guaranteed payout for Bob, in nanograms.

expire_atinteger (int64)required

Unix timestamp when the close proposal expires.

Ainteger (int64)required

Alice's final balance in nanograms.

Binteger (int64)required

Bob's final balance in nanograms.

object 3object
@typestring (enum)required

TonLib type identifier for payment channels in the payout phase. Refer to the TonLib type reference for a full list.

Ainteger (int64)required

Alice's payout amount in nanograms.

Binteger (int64)required

Bob's payout amount in nanograms.

descriptionstringrequired

Human-readable payment channel description.

Uninitializedobject
@typestring (enum)required

TonLib type identifier for uninitialized accounts. Refer to the TonLib type reference for a full list.

frozen_hashstringrequired

Hash of the frozen state. Present if account was frozen before being uninitialized.

revisionintegerrequired

Contract revision number. Different revisions may have different behavior.

@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 GET "https://ton-mainnet.nodit.io/api/v2/getExtendedAddressInformation?address=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "fullAccountState",
    "address": {
      "@type": "accountAddress",
      "account_address": "EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN"
    },
    "balance": "750551101",
    "extra_currencies": [],
    "last_transaction_id": {
      "@type": "internal.transactionId",
      "lt": "119175390000011",
      "hash": "C7wzkIjnoos2+Ar+8AdwpZnDKY9PW59Ic1NwqQ1EWcU="
    },
    "block_id": {
      "@type": "ton.blockIdExt",
      "workchain": -1,
      "shard": "-9223372036854775808",
      "seqno": 107892854,
      "root_hash": "383q3MHaEbWZGsgl2zVML0Vo8+8iTtF9gZHeP/MOWBA=",
      "file_hash": "jwcFBjAeYafojPlbM4/iFp1BqQBnhHz0dW3oWftdwds="
    },
    "sync_utime": 1795684368,
    "account_state": {
      "@type": "wallet.v4.accountState",
      "wallet_id": 698983191,
      "seqno": 305
    },
    "revision": 2
  },
  "@extra": "1795684369:1:9.95"
}