Skip to content

Commit

Permalink
Add unspent coin count to wallet balance API
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored and hoffmang9 committed May 9, 2021
1 parent 2c8f454 commit 61baae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chia/rpc/wallet_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ async def get_wallet_balance(self, request: Dict) -> Dict:
"spendable_balance": spendable_balance,
"pending_change": pending_change,
"max_send_amount": max_send_amount,
"unspent_coin_count": len(unspent_records),
}

return {"wallet_balance": wallet_balance}
Expand Down

0 comments on commit 61baae5

Please sign in to comment.