From 61baae564865989e6ec744751a92a32b1e2bfdca Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Sat, 8 May 2021 12:38:29 -0700 Subject: [PATCH] Add unspent coin count to wallet balance API --- chia/rpc/wallet_rpc_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chia/rpc/wallet_rpc_api.py b/chia/rpc/wallet_rpc_api.py index bddaa057f0..b78a75815a 100644 --- a/chia/rpc/wallet_rpc_api.py +++ b/chia/rpc/wallet_rpc_api.py @@ -456,6 +456,7 @@ class WalletRpcApi: "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}