Per review suggestion in #18594 (comment), this PR adds a total_balance
field for -getinfo
in multiwallet mode.
0 "balances": {
1 "": 0.00001000,
2 "Encrypted": 0.00003500,
3 "day-to-day": 0.00000120,
4 "side project": 0.00000094
5 },
6 "total_balance": 0.00003714
7}
Updated help:
0$ bitcoin-cli -h | grep -A3 getinfo
1 -getinfo
2 Get general information from the remote server, including the total
3 balance and the balances of each loaded wallet when in
4 multiwallet mode. Note that -getinfo is the combined result of
5 several RPCs (getnetworkinfo, getblockchaininfo, getwalletinfo,
6 getbalances, and in multiwallet mode, listwallets), each with
7 potentially different state.
Credit to João Barbosa for the suggestion.