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.

1 Answer 1

1

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

3
  • 1
    Better: it only applies to the balance of your whole wallet. It doesn't take an address argument as input (only deprecated account names). Dec 9, 2017 at 17:51
  • Can I search for addresses which are not in my wallet? Like check payment of address x?
    – A.c
    Dec 10, 2017 at 3:21
  • 1
    No, Bitcoin Core doesn't maintain the expensive indexes for that.
    – Claris
    Dec 10, 2017 at 4:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.