<p>Bitcoin-core (the full node implementation that makes up the majority of the network) does not keep an index of all addresses and balances, so without writing additional code to do the job, it is not possible. Bitcoin-core keeps track of coins via the UTXO model-- the idea of 'an address with a balance' is just an abstraction of this that makes for a more user-friendly interface.</p>
<p>Of course, you could write some code to create an index of addresses and their respective balances, or perhaps find an already-existing open-source block explorer project that accomplishes this.</p>

CC BY-SA 4.0
2020-10-26T07:27:46.397Z
This would require a lot of performance I assume, right? So nothing to present as "live data".
codepleb
CC BY-SA 4.0
2020-10-26T09:13:09.627Z
@TrudleR its not clear to me what you're asking, do you mean to create a live feed of addresses balances? That is essentially what block explorer services are, you could take a look, for example: https://github.com/Blockstream/esplora (disclaimer: I'm not affiliated with esplora, and haven't used it myself, but from what I understand of it, it may be of use to you)
chytrik
CC BY-SA 4.0
2020-10-26T09:24:25.037Z
Sorry. :) Basically I am just asking if that request would be kind of performance-intensive, which it definitely is. My idea with this question is, to see an overview of all addresses with more than 1 bitcoin on them. But I would probably refresh that not "on-call" but rather use a cache and refresh the real data behind it within a certain time interval.
codepleb
CC BY-SA 4.0
2020-10-26T07:07:24.400Z
2020-10-26T07:07:24.400Z
chytrik
<p>For instance, can I run a query on a bitcoin node, that returns all addresses with more than 1 bitcoin on them?</p>

<bitcoin-core><json-rpc>
Is it possible to query a node for all addresses containing value?
codepleb
# Is it possible to query a node for all addresses containing value?

(Asked by: username_0 on 2020-10-25)

For instance, can I run a query on a bitcoin node, that returns all addresses with more than 1 bitcoin on them?

**Tags:** bitcoin-core, json-rpc


---

## 1 answers

### Answer by username_1 on 2020-10-26. Score: 1

Bitcoin-core (the full node implementation that makes up the majority of the network) does not keep an index of all addresses and balances, so without writing additional code to do the job, it is not possible. Bitcoin-core keeps track of coins via the UTXO model-- the idea of 'an address with a balance' is just an abstraction of this that makes for a more user-friendly interface.

Of course, you could write some code to create an index of addresses and their respective balances, or perhaps find an already-existing open-source block explorer project that accomplishes this.

> **Comments:**
> **username_0**: This would require a lot of performance I assume, right? So nothing to present as "live data".  
> **username_1**: @TrudleR its not clear to me what you're asking, do you mean to create a live feed of addresses balances? That is essentially what block explorer services are, you could take a look, for example: https://github.com/Blockstream/esplora (disclaimer: I'm not affiliated with esplora, and haven't used it myself, but from what I understand of it, it may be of use to you)  
> **username_0**: Sorry. :) Basically I am just asking if that request would be kind of performance-intensive, which it definitely is. My idea with this question is, to see an overview of all addresses with more than 1 bitcoin on them. But I would probably refresh that not "on-call" but rather use a cache and refresh the real data behind it within a certain time interval.  

---

