Skip to main content

Validate address

POST validateAddress

Use validateAddress to check if a given wallet address is valid or not for a given currency.

For some currencies, in addition to address, you can validate extraId.

extraId is never required for validating address. However, if you want to, you can validate extraId for the following currencies:

  1. EOS
  2. XLM
  3. IOST
  4. STEEM
  5. STX
  6. XRP

HTTP request

https://api.changelly.com/v2/#validateAddress

Request

Header parameters
NameTypeRequiredDescription
X-Api-KeystringtrueYour API key (SHA256 from Public Key)
X-Api-SignaturestringtrueThe query's serialized body signed by your private key according to the RSA-SHA256 method.

Body parameters

NameTypeRequiredDescription
jsonrpcstringtrueJSON-RPC version.
idstringtrueClient's custom ID.
methodstringtrueAPI method name.
paramsobjecttrueRequest parameters.

params object:

NameTypeRequiredDescription
currencystringtrueCurrency ticker (in lowercase).
addressstringtrueWallet address.
extraIdstringfalseExtra ID.

Response

Sample response

application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"result": false,
"message": "Invalid address"
}
}