From 61a8544ece2d8bddea154e474d83e7b2ae338b79 Mon Sep 17 00:00:00 2001 From: Paul Kirby Date: Mon, 27 Jan 2020 16:53:01 -0600 Subject: [PATCH] Wallet_Balance call now returns available balance --- classes/LBRY_Daemon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/LBRY_Daemon.php b/classes/LBRY_Daemon.php index 1d523a8..62972f5 100644 --- a/classes/LBRY_Daemon.php +++ b/classes/LBRY_Daemon.php @@ -67,7 +67,7 @@ class LBRY_Daemon } /** - * Returns the balance of a current LBRY account + * Returns the available balance of a current LBRY account * https://lbry.tech/api/sdk#account_balance * @param string $address Wallet Address * @return float Wallet Balance @@ -76,7 +76,7 @@ class LBRY_Daemon { try { $result = $this->request('account_balance'); - return $result->result; + return $result->result->available; } catch (LBRYDaemonException $e) { $this->logger->log('account_balance error', $e->getMessage() . ' | Code: ' . $e->getCode()); LBRY()->notice->set_notice('error', 'Issue getting account balance.');