Blaxingly fast Bitcoin block and transaction analyzer written in Rust.
This tool parses raw Bitcoin block files (blk*.dat) and transactions (in JSON format), extracting and analyzing blockchain data including block headers, transactions, inputs, outputs, and metadata.
- Block Analysis — Parse
blk*.dat,rev*.dat, andundo*.datfiles from Bitcoin Core - Transaction Analysis — Decode and analyze individual transactions from JSON fixtures
- Multiple Formats — Support for legacy and SegWit transactions
- JSON Output — Structured output for easy integration with other tools
cargo build --releasecargo run path/to/fixture.jsonFixture format:
{
"raw_tx": "hex-encoded-transaction",
"prevouts": [
{
"scriptPubKey": "hex",
"value": 100000
}
]
}cargo run -- --block path/to/blk00000.dat path/to/rev00000.dat path/to/undo.datProcesses Bitcoin Core block files along with their corresponding reversal and undo data.
All output is in JSON format to stdout, with structured error reporting:
{
"ok": true,
"txid": "...",
"analysis": {
...
}
}- Rust 2024 edition or later
- Bitcoin Core data files (for block mode)
MIT