Balance of Wallet

V 2.0

Request balance of wallet.

Bitcoin QR code icon

Contents

Simple requests:

Code Example

<?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 Variables Present Experiment with a value
{wallet}
string, 32 chars

Wallet identificator

Required
Reset Values Execute
Response from server:
{ "total": 0, "currency": "btc" }

Success response:

{
    "total": 0,
    "currency": "btc"
}

Error Response

Error response return messages in plain text format below:
Invalid wallet.