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
Response example:
{
    "wallet": "btc-5484e54ec0bb35c95b79d7338399900f",
    "available": 49382493,
    "total": 49382493
}

Error Response

Playground and Code examples:

<?php
  $wallet = "5484e54ec0bb35c95b79d7338399900f";
  $data = file_get_contents("https://apirone.com/api/v2/wallets/".$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, }