Get all possible address forms
cURL
curl --request GET \ --url https://toncenter.com/api/v2/detectAddress
200
Example
{ "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 } }
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())
Identifier of target TON account in any form
OK
true
Information about the address.
Show child attributes