You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
404 B
17 lines
404 B
<?php |
|
|
|
require_once 'jsonRPCClient.php'; |
|
$electrum = new jsonRPCClient('http://localhost:7777'); |
|
|
|
echo '<b>Wallet balance</b><br />'."\n"; |
|
try { |
|
|
|
$balance = $electrum->getbalance(); |
|
echo 'confirmed: <i>'.$balance['confirmed'].'</i><br />'."\n"; |
|
echo 'unconfirmed: <i>'.$balance['unconfirmed'].'</i><br />'."\n"; |
|
|
|
} catch (Exception $e) { |
|
echo nl2br($e->getMessage()).'<br />'."\n"; |
|
} |
|
|
|
?>
|
|
|