Expand description
§brk_error
Unified error types for the Bitcoin Research Kit.
§Core API
Error- Comprehensive enum covering all error cases across the stackResult<T>- Convenience alias forResult<T, Error>
§Error Categories
External integrations: Bitcoin RPC, consensus encoding, address parsing, JSON serialization, database (fjall, vecdb), HTTP requests (minreq), async runtime (tokio)
Domain-specific: Invalid addresses, unknown TXIDs, unsupported types, metric lookup failures with fuzzy suggestions, request weight limits
Network intelligence: is_network_permanently_blocked() distinguishes transient failures (timeouts, rate limits) from permanent blocks (DNS failure, connection refused, TLS errors) to enable smart retry logic
Structs§
Enums§
Traits§
- Option
Data - Convert
Option<T>→Result<T>without panicking.
Functions§
- truncate_
series_ name - Truncate a user-supplied series name for inclusion in an error message,
appending an ellipsis if it exceeds the display cap. Used for both
SeriesNotFoundandSeriesUnsupportedIndexso far-too-long names don’t blow up the response body.