Validate address
This method could be used to check if a given wallet address has a valid format for a given currency. For some currencies you can also validate memo.
post
/v1/validateAddress/
Request
Header parameters
Requires authentication.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | String | Required | Wallet address to check. |
memo | String | Not required | Additional payment ID. |
network_id | Int | Required | Checking address network. |
Sample request
application/json
{
"address": "0xEDf8b112422A6.......C2Eba44398B514fa",
"network_id": 5
}
Response
Successful response
| Name | Type | Description |
|---|---|---|
result | Bool | If the given address is valid then true. |
Sample response
application/json
{
"result": true
}
Error response
Check the error response schema.
Error codes
| Error code | Error type | Error description |
|---|---|---|
401 | authentication_error | Authentication error. |
404 | http_error | Incorrect HTTP request. |
422 | unprocessable_entity_error | Unprocessable entity error. Business logic or wrong values errors. |
429 | rate_limit_error | Rate limit exceeded. |
500 | internal_error | Internal server error. |
- 401
- 404
- 422
- 429
- 500
{
"code": 401,
"type": "authentication_error",
"message": "Authentication error"
}
{
"code": 404,
"type": "entity_not_found_error",
"message": "No network with id 40032"
}
{
"code": 422,
"type": "unprocessable_entity_error",
"message": "body.address must be a string"
}
{
"code": 422,
"type": "unprocessable_entity_error",
"message": "Address validation is not supported for network with id 122"
}
{
"code": 429,
"type": "rate_limit_error",
"message": "Rate limit exceeded"
}
{
"code": 500,
"type": "internal_error",
"message": "Internal error"
}