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";
+}
+
+?>