2
I have created a regtest address and I want to check it's balance.
I have run the commands:
- -regtest generate 101
- -regtest getbalance
- -regtest sendtoaddress n4MN27Lk7Yh3pwfjCiAbRXtRVjs4Uk67fG 10.00
- -regtest generate 6
- -regtest getbalance n4MN27Lk7Yh3pwfjCiAbRXtRVjs4Uk67fG
after the 5th step the balance is still 0.
Why this happened since I have already sent 10 BTC to my address? Do I have to sign any outputs in order to claim the bitcoins?

@ Andrew the getbalance with no arguments is for the entire wallet.But how can I chech the balance for a particular public key/address? – gtopal – 2017-11-24T10:38:14.733
You can't. You have to add that address to an account (aka give it a label). Then you can use getbalance to get the balance of that account, and if it only has one address, it will be the balance of that address. – Andrew Chow – 2017-11-24T18:37:45.020
now make sense! – gtopal – 2017-11-27T11:56:26.190
use bitcoind -regtest -txindex and bitcoin-tx – cmc – 2018-04-26T23:25:51.120