Skip to main content
GET
/
api
/
v2
/
getAddressState
Get Address State
curl --request GET \
  --url https://toncenter.com/api/v2/getAddressState
{
  "ok": true,
  "result": "uninitialized"
}

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_state(
            ADDRESS,
        )
        print(result)


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
enum<string>
required

Computed from code/frozen_hash by the API server.

Available options:
uninitialized,
active,
frozen