3.8 KiB
Bitcoin Research Kit
Open-source Bitcoin analytics infrastructure.
Homepage · Bitview · API Reference
BRK parses, indexes, and analyzes Bitcoin blockchain data. It combines on-chain analytics (like Glassnode), block exploration (like mempool.space), and address indexing (like electrs) into a single self-hostable package.
See It In Action
Bitview is a web application built entirely on BRK. It offers interactive charts for exploring Bitcoin on-chain metrics—price models, supply dynamics, holder behavior, network activity, and more. Browse it to see what's possible with the data BRK provides.
What It Provides
On-Chain Metrics — Thousands of derived metrics: market indicators (realized cap, MVRV, SOPR, NVT), supply analysis (circulating, liquid, illiquid), holder cohorts (by balance, age, address type), and pricing models. This is what sets BRK apart from typical block explorers.
Blockchain Data — Blocks, transactions, addresses, UTXOs. The API follows mempool.space's format for compatibility with existing tools.
Multiple Indexes — Query data by date, block height, halving epoch, address type, UTXO age, and more. Enables flexible time-series queries and cohort analysis.
Mempool — Real-time fee estimation, projected blocks, unconfirmed transaction tracking.
REST API — JSON and CSV output with OpenAPI documentation.
MCP Server — Model Context Protocol integration for AI assistants and LLMs.
Get Started
Use the Public API — Access data without running infrastructure. Client libraries available for JavaScript, Python, and Rust. See the API reference for endpoints.
Self-Host — Run your own instance with Bitcoin Core. Install via cargo install --locked brk_cli or use Docker. Requires ~400 GB disk and 12+ GB RAM. See the hosting guide.
Use as a Library — Build custom tools with the Rust crates. Use individual components or the umbrella crate. See architecture for how they fit together.
Architecture
blk*.dat ──▶ Reader ──┐
├──▶ Indexer ──▶ Computer ──┐
RPC Client ──┤ ├──▶ Query ──▶ Server
└──▶ Mempool ───────────────┘
Reader parses Bitcoin Core's block files. Indexer builds lookup tables. Computer derives metrics. Mempool tracks unconfirmed transactions. Query provides unified data access. Server exposes the REST API.
Detailed architecture · All crates