Unexpected behaviour Bitcoin RPC getbalance I am seeing a smaller amount of BTC when I run ./bitcoin-cli getbalance compared to ./bitcoin-cli getbalance "" Here is the documentation on GetBalance from the BTC wiki, which highlights why I am confused

getbalance [account] [minconf=1]

If [account] is not specified, returns the server's total available balance.
If [account] is specified, returns the balance in the account.

If no account is specified, it should return the server's total balance, and yet here is my result:

./bitcoin-cli getbalance --- 0.00001250

./bitcoin-cli getbalance "" --- 0.34869089

Why is this happening?
NULL and an empty string are interpreted differently. An empty string has no values. It’s an empty char array, one that hasn’t been assigned any elements. The string exists in memory, so it’s not NULL. Therefore we have two different labels and two different balances associated with those labels.