On this page

latest contributor to this doc

Last Edit:

@gcharang

validateaddress

validateaddress coin address

The validateaddress method checks if an input string is a valid address of the specified coin.

Parameter* = requiredTypeDescription
address*
string
The input string to validate.
coin*
string
The coin to validate address for.

Parameter* = requiredTypeDescription
is_valid*
bool
Whether the input string is a valid coin address.
reason
string (optional)
Optional. Only present if not valid. The reason why the input string is not a valid address.

POST
validateaddress
{
  "address": "RRnMcSeKiLrNdbp91qNVQwwXx5azD4S4CD",
  "coin": "DOC",
  "method": "validateaddress",
  "userpass": "RPC_UserP@SSW0RD"
}

Response (Success)

SUCCESS
{
  "result": {
    "is_valid": true
  }
}