detectAddress - Ton

detectAddress. Checks if a given string is a valid TON blockchain address.

detectAddress - ton [Value: 100CU]
Checks if a given string is a valid TON blockchain address.
Use cases

Use cases

  • Check if a TON address is active
  • Identify the validity of a given address
  • Confirm address status in the network
Constraints

Constraints

  • Requires a valid TON address
  • Only detects active addresses
  • Relies on node synchronization with TON
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request GET \
     --url  'https://ton.drpc.org/rest/detectAddress?address=0:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef' \
     --header 'accept: application/json'
Copy
Response
200
{
    "ok": true,
    "result": {
        "raw_form": "0:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
        "bounceable": {
            "b64": "EQASNFZ4kKvN7xI0VniQq83vEjRWeJCrze8SNFZ4kKvN7xSL",
            "b64url": "EQASNFZ4kKvN7xI0VniQq83vEjRWeJCrze8SNFZ4kKvN7xSL"
        },
        "non_bounceable": {
            "b64": "UQASNFZ4kKvN7xI0VniQq83vEjRWeJCrze8SNFZ4kKvN70lO",
            "b64url": "UQASNFZ4kKvN7xI0VniQq83vEjRWeJCrze8SNFZ4kKvN70lO"
        },
        "given_type": "raw_form",
        "test_only": false
    }
}
Copy

Request params

Parametersstring
string
addressstring
Identifier of the target TON account in any form.

Response

200

Response params

object
okboolean
Indicates if the request was successful.
resultobject
The detailed account address information.
object
raw_formstring
The raw form of the account address.
bounceableobject
Bounceable address representations.
object
b64string
Base64 encoded bounceable address.
b64urlstring
URL-safe Base64 encoded bounceable address.
non_bounceableobject
Non-bounceable address representations.
object
b64string
Base64 encoded non-bounceable address.
b64urlstring
URL-safe Base64 encoded non-bounceable address.
given_typestring
The specified format type of the address (e.g., raw_form).
test_onlyboolean
Indicates if the address is for test-only purposes.