Verify a wallet address of the user
User/Verify
POST/api/v1/user/verify/wallet-address
Send two credentials: your own, and the customer's.
How authentication works- Either
Authorization: BearerorUser-Authorization: Bearer
Language
Environment
Credentials
Your credential, or the customer's
Choose an environment first.
curl -X POST https://api.btcdirect.eu/api/v1/user/verify/wallet-address \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "currency": "BTC", "address": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "destinationTag": "ABC12345", "name": "BTC address 1", "proof": "aGEgbWFkZSB5b3UgbG9vayE=" }'Response
{ "currency": "BTC", "address": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "destinationTag": { "default": "ABC1234", "XRP": 12341 }, "name": "BTC address 1", "status": "open"}Request
currencystringrequired
The currency of the wallet address.
ExampleBTC
addressstringrequired
The address of which the user will upload the proof of ownership.
Example3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5
destinationTagstring|integer
The destination tag for the wallet address to verify.
ExampleABC12345
namestringrequired
A descriptive name for the address.
ExampleBTC address 1
proofstringrequired
The base64 encoded binary image data (max 5MB un-encoded).
ExampleaGEgbWFkZSB5b3UgbG9vayE=
Responses
200Wallet verification successfully requested.400A list of possible errors for this endpoint.Body of the success response
currencystringrequired
The currency belonging to the wallet address that was sent for verification
ExampleBTC
addressstringrequired
The wallet address to verify.
Example3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5
destinationTagstring|integer
The destination tag which should be used to send the coins. This depends on the coin type and can be a string or an integer. For XRP it is an integer, for other coins it is a string.
namestringrequired
A descriptive name for the address.
ExampleBTC address 1
statusstringrequired
Can be one ofopenpendingdisabledverifiedrejected
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.