proger / utxo-dump

Bitcoind chainstate UTXOs to CSV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utxo-dump

Dump UTXOs from bitcoind (v0.15.x or newer) chainstate to csv.

Quick start (you need Nix 1.11.15 or newer):

$ git clone https://github.com/cryptah/utxo-dump ~/utxo-dump
$ cd ~/utxo-dump
$ nix-shell

## dump the chainstate database to CSV:

[nix-shell:~/utxo-dump]$ utxo2csv ~/.bitcoin/chainstate | pv > utxo.csv

## selectively parse pubkey scripts to human-readable list of opcodes:

[nix-shell:~/utxo-dump]$ tail utxo.csv | awk -F, '{print $7}' | python -mcryptah.script

The resulting csv file will be around 3x larger than the chainstate database, so plan accordingly.

About

Bitcoind chainstate UTXOs to CSV

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 67.8%Language:Nix 32.2%