From afae9a097e2bf39280589f3d1a456c5f70adc170 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 1 Dec 2015 09:42:47 +0100 Subject: [PATCH] add php example --- lib/www/example.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/www/example.php diff --git a/lib/www/example.php b/lib/www/example.php new file mode 100644 index 000000000..be981b964 --- /dev/null +++ b/lib/www/example.php @@ -0,0 +1,17 @@ +Wallet balance
'."\n"; +try { + + $balance = $electrum->getbalance(); + echo 'confirmed: '.$balance['confirmed'].'
'."\n"; + echo 'unconfirmed: '.$balance['unconfirmed'].'
'."\n"; + +} catch (Exception $e) { + echo nl2br($e->getMessage()).'
'."\n"; +} + +?>