All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add
block_events::websocket
client, and awebsocket::listen_new_block_headers
fn to get a stream of websocket messages. - Add
block_events::http
client, and multiple fns to consume data from mempool.space and/or esplora REST APIs. - Add
block_events::api
with multiple structs and definition for responses, such as:BlockExtended
and events asBlockEvent
- Add
block_events::subscribe_to_block_headers
fn in order to return aStream
ofblock_events::api::BlockEvent(bitcoin::BlockHeader)
. - Add
block_events::process_blocks
to handle block reorganization, manage in-memory cache structBlockHeadersCache
, and propagate errors to caller. - Add
block_events::subscribe_to_blocks
fn in order to return aStream
ofblock_events::api::BlockEvent(bitcoin::Block)
.