Crate bitcoin_explorer[][src]

Expand description

Introduction

This library is designed for efficient and massive deserialization of the binary Bitcoin Core block files.

It decodes all transactions, addresses, script types, connects outpoints of inputs to outputs, to figure out input addresses.

This library allows efficient and versatile reading of all bitcoin transaction records. This is good for analysis and research on bitcoin trading behaviour.

Caveat

Currently it only supports all standard script types.

Rust vs Python

For Rust users. Please use bitcoin_explorer::api. The structures and functions defined in lib here are intended for python users.

Example

use bitcoin_explorer::api::BitcoinDB;
use std::path::Path;

let path = Path::new("/Users/me/bitcoin").unwrap();

// launch without reading txindex
let db = BitcoinDB::new(path, false).unwrap();

// launch attempting to read txindex
let db = BitcoinDB::new(path, true).unwrap();

Re-exports

pub use crate::api::*;

Modules

Crates APIs, essential structs, functions, methods are all here!

This module defines the infrastructure for efficient iteration over blocks

Functions

This autogenerated function is called by the python interpreter when importing the module.