View the cryptocurrencies balances from your account

Endpoint

https://anonwallet.net/api/v1/balances

Code Example

/**
 * Requires libcurl
 */

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "Authorization: Bearer YOUR_API_KEY_HERE"
  ],
  CURLOPT_URL => "https://anonwallet.net/api/v1/balances",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}

API Response

{
    "status": 200,
    "message": "OK",
    "balances": [{
        "coin": "Bitcoin",
        "amount": "0.10000000"
    },
      {
        "coin": "Litecoin",
        "amount": "0.10000000"
      },
        {
        "coin": "Dogecoin",
        "amount": "0.10000000"
      }]
}