Validate an address
posthttps://api.criptointercambio.com/v2/#validateAddressRetrieves a wallet validation result for a given currency.
Request
Header parameters
Requires authentication headers.
Body parameters
Consists of a JSON-RPC 2.0 protocol request object.
The params schema:
| Name | Type | Required | Description |
|---|---|---|---|
address | string | true | The wallet address for validation. |
currency | string | true | The currency ticker. Enter in lowercase. |
extraId | string | false | The extra ID for validation. Info Although address validation does not require the extraId, you can validate it for the following currencies:
|
Sample request
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "validateAddress",
"params": {
"address": "<<an xrp address>>",
"currency": "xrp",
"extraId": "<<an xrp extraId>>"
}
}
Response
Successful response
Consists of a JSON-RPC 2.0 protocol response object.
The result schema:
| Name | Type | Description |
|---|---|---|
result | boolean | Is true if the address is valid. |
message | string | The error message. Returns only if the address is invalid. |
Sample successful response
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": {
"result": true
}
}
Error response
Consists of a JSON-RPC 2.0 protocol error response object.
Sample error response
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"error": {
"code": -32600,
"message": "Error: You reached requests limit 10 rps"
}
}
Error codes
| Code | Message | Description |
|---|---|---|
-32600 | Error: You reached requests limit {limit} rps | RPS is out of your limit. |
-32602 | Parameter {param} is invalid | The specified request param is invalid. |
-32603 |
| Mostly, this is a technical issue on our side. Requires further investigation. |