| Crates.io | bcloop |
| lib.rs | bcloop |
| version | 0.1.0 |
| created_at | 2025-05-27 02:00:29.116653+00 |
| updated_at | 2025-05-27 02:00:29.116653+00 |
| description | A tool for processing Bitcoin-like blockchain data |
| homepage | |
| repository | https://github.com/vladkens/bcloop |
| max_upload_size | |
| id | 1690501 |
| size | 49,892 |
A Bitcoin-like blockchain parser for local nodes, written in pure Rust. It parses raw blockchain .dat files and produces UTXO dumps in CSV format for analysis. Compatible with Bitcoin, Litecoin, Bitcoin Cash, and similar blockchains.
.dat files (ordered blocks)cargo install bcloop
bcloop utxodump /path/to/blockchain/blocks output.csv
cargo add bcloop
use bcloop::{BcWalker, AddrType};
// Initialize the blockchain walker
let walker = BcWalker::from_dir("/path/to/blockchain/blocks")?;
let chan = walker.get_chan();
while let Ok((blk, blk_size)) = chan.recv() {
println!("Block {} have {} txs", block.height, block.txs.len());
for tx in blk.txs.iter() {
for txo in tx.outputs.iter() { /* Process txo data... */ }
for txi in tx.inputs.iter() { /* Process txi data... */ }
}
}
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.