Skip to main content
POST
/
api
/
v2
/
detectAddress
Detect address
curl --request POST \
  --url https://toncenter.com/api/v2/detectAddress \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "address": "<string>"
}
'
{
  "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
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Request containing a single address parameter.

address
string
required

The account address in user-friendly format.

Response

OK

Response containing all address format variants.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.