| Crates.io | brk_server |
| lib.rs | brk_server |
| version | 0.1.0-beta.0 |
| created_at | 2025-02-23 23:35:39.771466+00 |
| updated_at | 2026-01-25 13:28:17.561856+00 |
| description | A server with an API for anything from BRK |
| homepage | https://bitcoinresearchkit.org |
| repository | https://github.com/bitcoinresearchkit/brk |
| max_upload_size | |
| id | 1566729 |
| size | 3,430,766 |
HTTP API server for Bitcoin on-chain analytics.
/api with full spec at /openapi.json/api.json for AI toolslet server = Server::new(&async_query, data_path, Website::Filesystem(files_path));
// Or Website::Default, or Website::Disabled
server.serve().await?;
| Path | Description |
|---|---|
/api |
Interactive API documentation |
/openapi.json |
Full OpenAPI specification |
/api.json |
Compact OpenAPI for LLMs |
/api/address/{address} |
Address stats, transactions, UTXOs |
/api/block/{hash} |
Block info, transactions, status |
/api/block-height/{height} |
Block by height |
/api/tx/{txid} |
Transaction details, status, hex |
/api/mempool |
Fee estimates, mempool stats |
/api/metrics |
Metric catalog and data queries |
/api/v1/mining/... |
Hashrate, difficulty, pools |
Uses ETag-based caching with must-revalidate:
Binds to port 3110, auto-incrementing up to 3210 if busy.
brk_query - data accessaide + axum - HTTP routing and OpenAPItower-http - compression and tracing