<p>Peter Wuille describes exactly how the UTXO data is stored in the chainstate directory of your locally-running full node:</p>

<p><a href="https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair">What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?</a></p>

<p>You'll want to scroll down to "Inside the chain state database".</p>

<p>You can grab the unspent amounts, transaction hashes and indices. The exact format specification can be found here:</p>

<p><a href="https://github.com/bitcoin/bitcoin/blob/d4a42334d447cad48fb3996cad0fd5c945b75571/src/coins.h#L19" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/d4a42334d447cad48fb3996cad0fd5c945b75571/src/coins.h#L19</a></p>

CC BY-SA 3.0
2016-07-08T13:37:43.870Z
2016-07-08T13:37:43.870Z
2017-04-13T12:47:33.743Z
Jimmy Song
<p>I'm working on some statistics concerning the distribution of the UTXO set. I'm especially interested in the values of the UTXO, and would perhaps like to limit extraction to certain sections of the blockchain.</p>

<p>Is there already a tool or script that lets me extract UTXO data?</p>

<blockchain><utxo>
How can I extract the values of all UTXO for a specific section of the blockchain?
Murch
# How can I extract the values of all UTXO for a specific section of the blockchain?

(Asked by: username_0 on 2016-07-08)

I'm working on some statistics concerning the distribution of the UTXO set. I'm especially interested in the values of the UTXO, and would perhaps like to limit extraction to certain sections of the blockchain.

Is there already a tool or script that lets me extract UTXO data?

**Tags:** blockchain, utxo


---

## 1 answers

### Answer by username_1 on 2016-07-08. Score: 2 | Accepted answer

Peter Wuille describes exactly how the UTXO data is stored in the chainstate directory of your locally-running full node:

[What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?](https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair)

You'll want to scroll down to "Inside the chain state database".

You can grab the unspent amounts, transaction hashes and indices. The exact format specification can be found here:

<https://github.com/bitcoin/bitcoin/blob/d4a42334d447cad48fb3996cad0fd5c945b75571/src/coins.h#L19>


---

