<p>blockexplorer.com <strong>does</strong> show the right balance. However, you are looking up in the Testnet blockchain.</p>

<p>The right request is the following:
<a href="http://blockexplorer.com/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH" rel="nofollow">http://blockexplorer.com/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH</a></p>

<p>If you open that link, you will see that it shows the right balance.</p>

<p>As you have mentioned, blockexplorer.com is open source, so you probably want to look at the source code to find out how the mechanism you are interested in works.</p>

CC BY-SA 3.0
2013-12-19T15:28:17.680Z
Thanks!It works.But it is still difficult to find the getbalance code from blockexplorer.com written in python.Is there an easier way to getbalance locally not by Internet?Just from the bitcoin-qt client?Or any other lib for cpp?
Gank
CC BY-SA 3.0
2013-12-20T18:18:15.197Z
bitcoin-qt, as far as I know, doesn't have an API call for this.
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2014-09-10T09:34:58.993Z
where does blockexplorer.com get the information about balances?
Incerteza
CC BY-SA 3.0
2013-12-19T14:55:32.390Z
2013-12-19T14:55:32.390Z
rrrrrrrrrrrrrrrr
<p>I know blockchain.info has an API: <a href="https://blockchain.info/q/addressbalance/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH">https://blockchain.info/q/addressbalance/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH</a>
gets the bitcoin address's balance,but it's not open source and must connect to the Internet.</p>

<p>And I find the open source website blockexplorer.com has not show the right balance:
<a href="http://blockexplorer.com/testnet/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH">http://blockexplorer.com/testnet/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH</a>
It gets 0 but not 1250000 from blockchain.info.</p>

<p>I tried bitcoin-qt client debug console:
getbalance 134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH
But it returns 0 whenever the address is not mine.</p>

<p><strong>How can I get someone else's bitcoin address's balance?</strong>
The bitcoin database is big and hard to check every transaction to get the balance.</p>

<p><strong>Is there any source code or API easy to use?</strong></p>

CC BY-SA 3.0
2014-02-25T06:04:37.557Z
Did you found any method to get else's bitcoin address' balance ?
coding_idiot
CC BY-SA 3.0
2014-04-30T18:59:49.133Z
Why does it need to be open source? You'll need to connect to the Internet anyway.
jobukkit
CC BY-SA 3.0
2014-06-24T11:20:16.653Z
@coding_idiot Not yet. ABE has the function, but I failed to use it. It's too big the database.
Gank
CC BY-SA 3.0
2014-06-24T11:21:06.480Z
@JopVernooij The website will block my IP, if I quest too much query. :)
Gank
CC BY-SA 3.0
2014-11-10T10:33:10.127Z
Without internet, you won't be able to get the actual balance. Either you connect to some site or online API, or you use a local Bitcoin client but that will still need internet to get the current data from the Bitcoin p2p network.
Maǳi Koǌo
<bitcoind><client><bitcoin-core><address><block>
How to get a bitcoin address's balance?
Gank
# How to get a bitcoin address's balance?

(Asked by: username_0 on 2013-12-19)

I know blockchain.info has an API: <https://blockchain.info/q/addressbalance/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH>
gets the bitcoin address's balance,but it's not open source and must connect to the Internet.

And I find the open source website blockexplorer.com has not show the right balance:
<http://blockexplorer.com/testnet/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH>
It gets 0 but not 1250000 from blockchain.info.

I tried bitcoin-qt client debug console:
getbalance 134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH
But it returns 0 whenever the address is not mine.

**How can I get someone else's bitcoin address's balance?**
The bitcoin database is big and hard to check every transaction to get the balance.

**Is there any source code or API easy to use?**

**Tags:** bitcoind, client, bitcoin-core, address, block

> **Comments:**
> **username_1**: Did you found any method to get else's bitcoin address' balance ?  
> **username_2**: Why does it need to be open source? You'll need to connect to the Internet anyway.  
> **username_0**: @username_1 Not yet. ABE has the function, but I failed to use it. It's too big the database.  
> **username_0**: @JopVernooij The website will block my IP, if I quest too much query. :)  
> **username_3**: Without internet, you won't be able to get the actual balance. Either you connect to some site or online API, or you use a local Bitcoin client but that will still need internet to get the current data from the Bitcoin p2p network.  

---

## 1 answers

### Answer by username_4 on 2013-12-19. Score: 4 | Accepted answer

blockexplorer.com **does** show the right balance. However, you are looking up in the Testnet blockchain.

The right request is the following:
<http://blockexplorer.com/address/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH>

If you open that link, you will see that it shows the right balance.

As you have mentioned, blockexplorer.com is open source, so you probably want to look at the source code to find out how the mechanism you are interested in works.

> **Comments:**
> **username_0**: Thanks!It works.But it is still difficult to find the getbalance code from blockexplorer.com written in python.Is there an easier way to getbalance locally not by Internet?Just from the bitcoin-qt client?Or any other lib for cpp?  
> **username_4**: bitcoin-qt, as far as I know, doesn't have an API call for this.  
> **username_5**: where does blockexplorer.com get the information about balances?  

---

