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?

1 Answer 1


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)?

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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.