From 5bb6180bb8995065b2f7eabe48e8542c4b66d23b Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Tue, 15 Aug 2017 18:43:10 -0500 Subject: [PATCH] Add getbalance_unlocked() function --- monero/library.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monero/library.php b/monero/library.php index 2bb4879..2ca1c5f 100644 --- a/monero/library.php +++ b/monero/library.php @@ -95,6 +95,13 @@ class Monero_Library return $balance; } + public function getbalance_unlocked() + { + $result = $this->_run('getbalance'); + $balance = $result['result']['unlocked_balance']; + return $balance; + } + public function getheight() { $result = $this->_run('getheight');