Skip to main content

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​

NameTypeRequiredDescription
addressStringRequiredWallet address to check.
memoStringNot requiredAdditional payment ID.
network_idIntRequiredChecking address network.
Sample request
application/json
{
"address": "0xEDf8b112422A6.......C2Eba44398B514fa",
"network_id": 5
}

Response​

Successful response​

NameTypeDescription
resultBoolIf the given address is valid then true.
Sample response
application/json
{
"result": true
}

Error response​

Check the error response schema.

Error codes​

Error codeError typeError description
401authentication_errorAuthentication error.
404http_errorIncorrect HTTP request.
422unprocessable_entity_errorUnprocessable entity error. Business logic or wrong values errors.
429rate_limit_errorRate limit exceeded.
500internal_errorInternal server error.
{
"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"
}