user137732: I'm currently running a Bitcoin Core full node on my raspberry pi. I have set the config file to txindex=1 and I want to query the bitcoin network to find out how many addresses hold more than 1 bitcoin. I have gotten the getrawtransaction and decoderawtransaction to work. Does anyone know where to start? I'm struggling a bit.

user13866: 
I want to query the bitcoin network to find out how many addresses hold more than 1 bitcoin

Bitcoin core is mainly focussed around being a wallet for one person. Your objective is not one that Bitcoin core supports very well (if at all)
Of course, Bitcoin core does accumulate a complete set of transaction data and some useful derived data that you can analyse by other means. One of the derived sets of data maintained by Bitcoin core is the chainstate - which I believe is mostly the UTXO set.
I would aim to extract the UTXO set then iterate through that to sum by address (e.g. in a map of addresses to total amount).

Related

How to query all utxos of an address from a full node?
How to find all UTXOs?


137732: <p>I'm currently running a Bitcoin Core full node on my raspberry pi. I have set the config file to txindex=1 and I want to query the bitcoin network to find out how many addresses hold more than 1 bitcoin. I have gotten the getrawtransaction and decoderawtransaction to work. Does anyone know where to start? I'm struggling a bit.</p>
 13866: <blockquote>
<p>I want to query the bitcoin network to find out how many addresses hold more than 1 bitcoin</p>
</blockquote>
<p>Bitcoin core is mainly focussed around being a wallet for one person. Your objective is not one that Bitcoin core supports very well (if at all)</p>
<p>Of course, Bitcoin core does accumulate a complete set of transaction data and some useful derived data that you can analyse by other means. One of the derived sets of data maintained by Bitcoin core is the chainstate - which I believe is mostly the UTXO set.</p>
<p>I would aim to extract the UTXO set then iterate through that to sum by address (e.g. in a map of addresses to total amount).</p>
<hr />
<p>Related</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/93860/13866">How to query all utxos of an address from a full node?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/83536/13866">How to find all UTXOs?</a></li>
</ul>
