Skip to main content
GET
/
api
/
v2
/
getAddressInformation
Get Address Information
curl --request GET \
  --url https://toncenter.com/api/v2/getAddressInformation
{
  "ok": true,
  "result": {
    "@type": "raw.fullAccountState",
    "balance": "<string>",
    "extra_currencies": [
      {
        "@type": "extraCurrency",
        "id": 123,
        "amount": "<string>"
      }
    ],
    "last_transaction_id": {
      "@type": "internal.transactionId",
      "lt": "<string>",
      "hash": "<string>"
    },
    "block_id": {
      "@type": "ton.blockIdExt",
      "workchain": 123,
      "shard": "<string>",
      "seqno": 123,
      "root_hash": "<string>",
      "file_hash": "<string>"
    },
    "code": "<string>",
    "data": "<string>",
    "frozen_hash": "<string>",
    "sync_utime": 123,
    "state": "uninitialized",
    "suspended": true
  }
}

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network

ADDRESS = "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        result = await client.v2.accounts.get_address_information(
            ADDRESS,
        )
        print(result.model_dump_json(indent=4))


if __name__ == "__main__":
    asyncio.run(main())

Query Parameters

address
string
required

Identifier of target TON account in any form

seqno
integer<int32>

Seqno of a block

Response

OK

ok
boolean
required
Example:

true

result
AddressInformation · object
required