Skip to content

Rust crate that extracts all UTXOs from Bitcoin Core's chainstate LevelDB.

License

Notifications You must be signed in to change notification settings

RecRanger/rust-utxo-scanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UTXO Scanner

Scans the chainstate LevelDB from Bitcoin Core, extracts all UTXOs, and places them in RocksDB, a CSV file, or both.

Usage - CLI

cargo install utxo-scanner-cli

utxo-scanner-cli --bitcoin-path /path/to/.bitcoin --csv-path ./output.csv

utxo-scanner-cli --bitcoin-path /path/to/.bitcoin --csv-path ./output.csv --include-mempool true --testnet true

Usage - Library

use utxo_scanner

// Scan for all UTXOs
let stats = utxo_scanner::scan("/path/to/.bitcoin", true, Some("/path/to/desired.csv"));

println!("Total Txs: {}", stats.count);
println!("Total Amount: {}", stats.amount);
println!("Total Secs: {}", stats.total_secs);

// Remove RocksDB and start fresh
utxo_scanner::reset_rocksdb

About

Rust crate that extracts all UTXOs from Bitcoin Core's chainstate LevelDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%