<p>This is relatively hard to achieve, because if you wish to allow querying any address at any height you deal with a <strong>LOT</strong> of data. You probably would need serve database server (cluster).</p>

<p>I'm pretty sure, getting a balance at a specific height from a specific address is not possible over a existing app or API.</p>

<p>You could try built it yourself with bitcoin-core as basis.
Maybe have a look at the >1year old <a href="https://github.com/bitcoin/bitcoin/pull/3652" rel="nofollow">address index patch</a> from Johnathan Corgan. But it would required additional to allow a API where you could define the height.</p>

<p>But caching every address at every possible height (Juli 29 2015: 367456, amount of addresses ~250k) is nearly impossible.</p>

CC BY-SA 3.0
2015-07-29T07:49:20.900Z
2015-07-29T07:49:20.900Z
Jonas Schnelli
<p>Is it possible to view the balance of an address at a specific height, without using any external web api?</p>

<p>Could it perhaps be done using <a href="https://github.com/libbitcoin/libbitcoin-explorer" rel="nofollow">bx</a> or the <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list" rel="nofollow">Bitcoin client API</a>?</p>

CC BY-SA 3.0
2015-07-29T06:39:05.970Z
bx does use external API's.
Nick ODell
<block><balance><height>
How can one extract an address balance at a specific height?
Jonas Lejon
# How can one extract an address balance at a specific height?

(Asked by: username_0 on 2015-07-29)

Is it possible to view the balance of an address at a specific height, without using any external web api?

Could it perhaps be done using [bx](https://github.com/libbitcoin/libbitcoin-explorer) or the [Bitcoin client API](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list)?

**Tags:** block, balance, height

> **Comments:**
> **username_1**: bx does use external API's.  

---

## 1 answers

### Answer by username_2 on 2015-07-29. Score: 1

This is relatively hard to achieve, because if you wish to allow querying any address at any height you deal with a **LOT** of data. You probably would need serve database server (cluster).

I'm pretty sure, getting a balance at a specific height from a specific address is not possible over a existing app or API.

You could try built it yourself with bitcoin-core as basis.
Maybe have a look at the >1year old [address index patch](https://github.com/bitcoin/bitcoin/pull/3652) from Johnathan Corgan. But it would required additional to allow a API where you could define the height.

But caching every address at every possible height (Juli 29 2015: 367456, amount of addresses ~250k) is nearly impossible.


---

