Balance of Wallet

Bitcoin QR code icon

Contents

Request:

{WalletID}, string Wallet Identificator. Required

Success Response Reference:

{total}, integer Current wallet balance in Satoshi. Required
{currency}, string Crypto currency. Required
Response example:
{
    "total": 0,
    "currency": "btc"
}

Error Response

Playground and Code examples:

<?php
  $wallet = "5484e54ec0bb35c95b79d7338399900f";
  $data = file_get_contents("https://apirone.com/api/v2/btc/wallet/".$wallet."/balance");
  $respond = json_decode($data,true);
  $total = $respond["total"];
  echo "total: " . $respond["total"] . " satoshies";
?>
Format and Variables:
Parameter Experiment with a value
WalletID
Reset Values Execute
Response from server:
{ "total": 0, "currency": "btc" }