<p><code>getbalance</code> only applies to addresses you own (and are in your <code>wallet.dat</code>).</p>

CC BY-SA 3.0
2017-12-09T17:51:11.783Z
Better: 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
CC BY-SA 3.0
2017-12-10T03:21:50.750Z
Can I search for addresses which are not in my wallet? Like check payment of address x?
A.c
CC BY-SA 3.0
2017-12-10T04:02:19.810Z
No, Bitcoin Core doesn't maintain the expensive indexes for that.
Claris
CC BY-SA 3.0
2017-12-09T15:26:13.153Z
2017-12-09T15:26:13.153Z
Claris
<p>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.</p>

<pre><code>E.g.
C:\Program Files\Bitcoin\daemon&gt;bitcoin-cli.exe getbalance "[address...]"
0.00000000
</code></pre>

<p>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.</p>

<wallet><bitcoind><client>
bitcoin-cli "getbalance" always returns 0
A.c
# bitcoin-cli "getbalance" always returns 0

(Asked by: username_0 on 2017-12-09)

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.

**Tags:** wallet, bitcoind, client


---

## 1 answers

### Answer by username_1 on 2017-12-09. Score: 1

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

> **Comments:**
> **username_2**: Better: it only applies to the balance of your whole wallet. It doesn't take an address argument as input (only deprecated account names).  
> **username_0**: Can I search for addresses which are not in my wallet? Like check payment of address x?  
> **username_1**: No, Bitcoin Core doesn't maintain the expensive indexes for that.  

---

