v3

Check a wallet address

A POST rather than a GET so the address does not travel in a URL: request logs record the full query string and retention is unlimited. Validation is local, so no caching is lost.

POST/api/v3/wallet-addresses/validate

Send your own credential. No customer is involved.

How authentication works
Yours
x-api-keyorAuthorization: Bearer

Language

Environment

Credentials

Your credential

Choose an environment first.

cURL request
curl -X POST https://api.btcdirect.eu/api/v3/wallet-addresses/validate \  -H "x-api-key: $BTCD_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",    "currency": "bip122:000000000019d6689c085ae165831e93/slip44:0"  }'
Choose an environment to run this.

Response

The result. An invalid address is a 200 with valid=false, not an error.
{  "valid": true,  "reason": "invalid address for this chain"}

Request

addressstringrequired

Examplebc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq

currencystringrequired

CAIP-19.

Examplebip122:000000000019d6689c085ae165831e93/slip44:0

memostring

Example106548921

Responses

200The result. An invalid address is a 200 with valid=false, not an error.
503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.

Body of the success response

validbooleanrequired

reasonstring

Why it is not valid. Absent when it is.

Exampleinvalid address for this chain

Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.