Skip to main content
GET
/
api
/
v2
/
detectAddress
Detect address
curl --request GET \
  --url https://toncenter.com/api/v2/detectAddress
{
  "ok": true,
  "result": {
    "@type": "ext.utils.detectedAddress",
    "raw_form": "<string>",
    "bounceable": {
      "@type": "ext.utils.detectedAddressVariant",
      "b64": "<string>",
      "b64url": "<string>"
    },
    "non_bounceable": {
      "@type": "ext.utils.detectedAddressVariant",
      "b64": "<string>",
      "b64url": "<string>"
    },
    "given_type": "raw_form",
    "test_only": 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.utils.detect_address(
            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

Response

OK

ok
boolean
required
Example:

true

result
DetectAddress · object
required

Information about the address.