GETGet extended address information
https://ton-mainnet.nodit.io/api/v2/getExtendedAddressInformationReturns detailed account information with parsed contract state. For recognized contract types, returns type-specific state fields. For other contracts, returns the raw state.
The account address to query, in raw or user-friendly format.
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.
Returns true if the request succeeded; otherwise false. See the error field for details.
TonLib type identifier for extended account state responses. Refer to the TonLib type reference for a full list.
Account address object.
TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.
The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.
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.
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.
TonLib type identifier for extra currency balance entries. Refer to the TonLib type reference for a full list.
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.
Currency balance amount as a decimal string.
Reference to the most recent transaction. Use as starting point for getTransactions.
TonLib type identifier for transaction ID references. Refer to the TonLib type reference for a full list.
Logical time of the transaction. Use together with its hash for pagination and lookups.
SHA-256 hash of this transaction, encoded in base64.
Full block identifier where this event occurred.
TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.
Workchain ID: -1 for masterchain, 0 for basechain.
Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.
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 hash of the block. Together with file_hash, uniquely identifies a block.
Hash of the serialized block file. Together with root_hash, uniquely identifies a block.
Unix timestamp of the block from which this data was read.
Detailed account state including contract type and internal data.
TonLib type identifier for raw (unrecognized) contract states. Refer to the TonLib type reference for a full list.
Smart contract code in BoC format, base64 encoded. Empty if account is uninitialized.
Smart contract persistent storage in BoC format, base64 encoded.
Hash of the frozen state. Only present for frozen accounts.
TonLib type identifier for Wallet v3 contracts. Refer to the TonLib type reference for a full list.
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.
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.
TonLib type identifier for Wallet v4 contracts. Refer to the TonLib type reference for a full list.
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.
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.
TonLib type identifier for Highload Wallet v1 contracts. Refer to the TonLib type reference for a full list.
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.
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.
TonLib type identifier for Highload Wallet v2 contracts. Refer to the TonLib type reference for a full list.
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.
TonLib type identifier for DNS resolver contracts. Refer to the TonLib type reference for a full list.
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.
TonLib type identifier for restricted wallet contracts. Refer to the TonLib type reference for a full list.
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.
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.
Balance available for immediate withdrawal, in nanograms.
Spending limits and restrictions configuration.
TonLib type identifier for restricted wallet configuration. Refer to the TonLib type reference for a full list.
Unix timestamp when the spending limits become active.
Array of spending limit rules. Each entry defines a time window in seconds and the maximum spendable amount in nanograms within that window.
TonLib type identifier for restricted wallet spending limit rules. Refer to the TonLib type reference for a full list.
Duration of this spending limit window in seconds.
Maximum spendable amount within this time period, in nanograms.
TonLib type identifier for payment channel contracts. Refer to the TonLib type reference for a full list.
Payment channel configuration (parties, timeouts, keys).
TonLib type identifier for payment channel configuration. Refer to the TonLib type reference for a full list.
Alice's Ed25519 public key for signing channel operations.
Alice's on-chain wallet address.
TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.
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's Ed25519 public key for signing channel operations.
Bob's on-chain wallet address.
TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.
The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.
Maximum seconds allowed to complete channel initialization before it expires.
Maximum seconds allowed to complete cooperative channel closure.
Unique numeric identifier for this payment channel.
Current payment channel state (init, close, or payout phase).
TonLib type identifier for payment channels in the initialization phase. Refer to the TonLib type reference for a full list.
Returns true if Alice has signed the initialization; otherwise false.
Returns true if Bob has signed the initialization; otherwise false.
Minimum deposit required from Alice, in nanograms.
Minimum deposit required from Bob, in nanograms.
Unix timestamp when the initialization offer expires.
Alice's deposited amount in nanograms.
Bob's deposited amount in nanograms.
TonLib type identifier for payment channels in the closing phase. Refer to the TonLib type reference for a full list.
Returns true if Alice has signed the close proposal; otherwise false.
Returns true if Bob has signed the close proposal; otherwise false.
Minimum guaranteed payout for Alice, in nanograms.
Minimum guaranteed payout for Bob, in nanograms.
Unix timestamp when the close proposal expires.
Alice's final balance in nanograms.
Bob's final balance in nanograms.
TonLib type identifier for payment channels in the payout phase. Refer to the TonLib type reference for a full list.
Alice's payout amount in nanograms.
Bob's payout amount in nanograms.
Human-readable payment channel description.
TonLib type identifier for uninitialized accounts. Refer to the TonLib type reference for a full list.
Hash of the frozen state. Present if account was frozen before being uninitialized.
Contract revision number. Different revisions may have different behavior.
Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.