Skip to main content

Validate an address


posthttps://api.criptointercambio.com/v2/#validateAddress

Retrieves 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:

NameTypeRequiredDescription
addressstringtrueThe wallet address for validation.
currencystringtrueThe currency ticker. Enter in lowercase.
extraIdstringfalseThe extra ID for validation.
Info
Although address validation does not require the extraId, you can validate it for the following currencies:
  • EOS.
  • XLM.
  • IOST.
  • STEEM.
  • STX.
  • XRP.

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:

NameTypeDescription
resultbooleanIs true if the address is valid.
messagestringThe 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

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsRPS is out of your limit.
-32602Parameter {param} is invalidThe specified request param is invalid.
-32603
  • Internal Error
  • Error
Mostly, this is a technical issue on our side. Requires further investigation.