I'm not quite sure what I'm doing wrong here. I believe I have followed everything correctly but for some reason its still not working? I am using directions from here: https://bitcoin.org/en/developer-examples
bitcoin-cli -regtest generate 101 < This prints that long list of new satoshis
bitcoin-cli -regtest getbalance
50.00000000 Ensuring that the balance is 50
bitcoin-cli -regtest getnewaddress < Make sure I have a new address to send satoshis to
bitcoin-cli -regtest sendtoaddress mviKj9i2zQmoLVUGkLBMuDhwvAwDmfrAmZ 10.00 Attempting to send satoshis. This returns the transaction ID.
bitcoin-cli -regtest generate 1 < Should confirm it
bitcoin-cli -regtest getbalance mviKj9i2zQmoLVUGkLBMuDhwvAwDmfrAmZ
I am expecting this to return 10.00 however it returns 0.00000000
Any ideas on how to fix this?
getbalance
, which is interpreted as an account name (a feature that is deprecated and will be removed soon). If you drop that, you'll get the wallet balance. Alternatively, you could usegetreceivedbyaddress
.