Collecting a crypto address from your merchant

To send the funds to your merchant they'll need to give you a valid crypto address. In this step, we will use the Validate address endpoint to check that the address given is valid.

curl --request PUT \
     --url https://api.sandbox.bvnk.com/api/v1/pay/validate \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "code": "crypto",
     "currency": "USDT",
     "protocol": "TRC20",
     "address": "TFsmkjujT9omG5TFrEXYbDocTdjeeHgcrQ"
}
'

You'll need the following information:

ParameterTypeDescription
codestringSet to crypto.
currencystringThe currency code of the address you are checking.
protocolstringThe protocol of the address you are checking.
addressstringThe address you are checking.

If the address is correct, you'll receive a 200 HTTP code response.