GETGet address information

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

Returns the current state of any account on the TON blockchain. Includes the balance (in nanograms), smart contract code and data (if deployed), account status, and a reference to the last transaction. This is the primary endpoint for checking if an address exists and what's deployed there.

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 full account state responses. Refer to the TonLib type reference for a full list.

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.

codestringrequired

Smart contract code in BoC format, base64 encoded.

datastringrequired

Smart contract persistent storage in BoC format, base64 encoded.

frozen_hashstringrequired

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

sync_utimeinteger (int64)required

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

statestring (enum)required

Account state: uninitialized, active, or frozen.

suspendedboolean

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

@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/getAddressInformation?address=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "raw.fullAccountState",
    "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": 107892848,
      "root_hash": "qsY6uLqwjHCsTn/Y0PmTjXNTta0LiEgVwIHJ6WeKWkw=",
      "file_hash": "KPGzvPV+HF+U1t1JvK16nDkczj1OOTeIdbCBvcUEolE="
    },
    "code": "te6cckECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDj...",
    "data": "te6cckEBAQEAKwAAUQAAATEpqaMXHdI7VXoYJ+xuiqLSt/SBjcdtHT/DDRyy4Xi10aI/rGhAxTET0w==",
    "frozen_hash": "",
    "sync_utime": 1795684366,
    "state": "active",
    "suspended": false
  },
  "@extra": "1795684367:14:15.326"
}