๐ Validate a Tron address
Code samples
GET /api/v1/trx/account/{address}/validate
curl 'https://settla.net/api/v1/trx/account/TMuA6YqfCeX8EhbfYEg5y7S4DqzSJireY9/validate' \
-H 'X-API-Key: $SETTLA_API_KEY' \
-H 'Accept: application/json'
Checks the base58 checksum of a Tron address locally โ no node call and no statement about whether the account exists on chain. An address that has never received anything is still is_valid: true. valid duplicates is_valid for backwards compatibility; new integrations should read is_valid.
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| address | path | string | true | Base58 Tron address. |
Example responses
200 Response
{
"address": "TMuA6YqfCeX8EhbfYEg5y7S4DqzSJireY9",
"is_valid": true,
"valid": true
}
500 Response
{
"error": "Could not connect to TRX node."
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Validation result | Inline |
| 500 | Internal Server Error | Could not connect to TRX node | Inline |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป address | string | false | none | none |
| ยป is_valid | boolean | false | none | none |
| ยป valid | boolean | false | none | Backward compatibility duplicate of is_valid. |
Status Code 500
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |
| ยป details | object | false | none | Present only on a few validation errors. |