POSTGet address state

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

Returns the lifecycle state of an account. Possible values: uninitialized (address has no deployed contract but can receive GRAM), active (contract is deployed and working), frozen (contract state frozen). Refer to the account lifecycle states documentation for details. Check this before interacting with a contract.

Request Body
addressstringrequired

Account address in raw format (e.g., 0:ca6e321c...) or user-friendly format (e.g., EQDKbjIcfM...). All formats are automatically detected.

seqnostring

Masterchain block sequence number. Query the account state as it was at this block height. If omitted, returns the current state.

Responses
okbooleanrequired

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

resultstring (enum)required

Response data. Present only when ok is true.

@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 POST "https://ton-mainnet.nodit.io/api/v2/getAddressState" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN"
  }'
Response
Example · 200
{
  "ok": true,
  "result": "active",
  "@extra": "1795684365:10:8.307"
}