hsd
hsd copied to clipboard
wallet: add 'spendable_balance' to getwalletinfo RPC
This enables a user to view their spendable balance using the getwalletinfo RPC
Pull Request Test Coverage Report for Build 232854351
- 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
- 1 unchanged line in 1 file lost coverage.
- Overall coverage increased (+0.8%) to 59.161%
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| lib/protocol/consensus.js | 1 | 82.79% |
| <!-- | Total: | 1 |
| Totals | |
|---|---|
| Change from base Build 212167982: | 0.8% |
| Covered Lines: | 19359 |
| Relevant Lines: | 30452 |
💛 - Coveralls
I am wondering if we should modify this and/or add getbalancedetails(or info) rpc methods to include balance details which can be used by users however they want. It could be advanced version of getbalance.
I am wondering if we should modify this and/or add
getbalancedetails(orinfo) rpc methods to include balance details which can be used by users however they want. It could be advanced version ofgetbalance.
Bitcoin core has extra details in getwalletinfo and also has separate rpc getwalletbalances which also calculates the immature newly mined coins (see #662)