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