Wallet_Balance call now returns available balance
This commit is contained in:
parent
4752915e4d
commit
61a8544ece
1 changed files with 2 additions and 2 deletions
|
@ -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.');
|
||||
|
|
Loading…
Reference in a new issue