Verify Addresses

Check if the address conforms to the wallet cryptocurrency address format.

For example, ETH must have the prefix 0x, BTC should start with 1, 3 or bc1, etc.

Request

POST /v1/sofa/wallets/{WALLET_ID}/addresses/verify

Post Body

Field Type Note Description
addresses array requried Specify the address for verification

Response Body

Field Type Description
result array Array of addresses’ verification result
must_need_memo boolean Indicate whether the address needs a memo / destination tag when transferring cryptocurrency to that address

Sample Request

API

/v1/sofa/wallets/56788/addresses/verify

Post Body

{
  "addresses": [
    "0x635B4764D1939DfAcD3a8014726159abC277BecC",
    "1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE"
  ]
}

Response Body

{
  "result": [
    {
      "address": "0x635B4764D1939DfAcD3a8014726159abC277BecC",
      "valid": true,
      "must_need_memo": false
    },
    {
      "address": "1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE",
      "valid": false,
      "must_need_memo": false
    }
  ]
}

Sample cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"addresses":["0x635B4764D1939DfAcD3a8014726159abC277BecC","1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE"]}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/addresses/verify