bitcoin-cli "getbalance" always returns 0

0

I have bitcoind running on windows and currently it's syncing the blockchain. Nevertheless, command getbalance always returns zero as value. Even if I seach for an address which has bitcoin.

E.g.
C:\Program Files\Bitcoin\daemon>bitcoin-cli.exe getbalance "[address...]"
0.00000000

Why does it always return 0? I would like to get the address balance of a specific address. I used an address from blockchain.info which had a balance before the current downloaded block.

A.c

Posted 2017-12-09T14:05:32.087

Reputation: 125

Answers

1

getbalance only applies to addresses you own (and are in your wallet.dat).

Anonymous

Posted 2017-12-09T14:05:32.087

Reputation: 10 054

1Better: it only applies to the balance of your whole wallet. It doesn't take an address argument as input (only deprecated account names).Pieter Wuille 2017-12-09T17:51:11.783

Can I search for addresses which are not in my wallet? Like check payment of address x?A.c 2017-12-10T03:21:50.750

No, Bitcoin Core doesn't maintain the expensive indexes for that.Anonymous 2017-12-10T04:02:19.810