1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Chain tracker implementations.
//!
//! This module provides concrete implementations of the [`ChainTracker`](super::ChainTracker) trait
//! for verifying merkle roots against the blockchain.
//!
//! # Available Trackers
//!
//! - [`WhatsOnChainTracker`] - Verifies via WhatsOnChain API
//! - [`BlockHeadersServiceTracker`] - Verifies via Block Headers Service API
//!
//! # Feature Requirements
//!
//! These implementations require the `http` feature to be enabled:
//!
//! ```toml
//! [dependencies]
//! bsv-rs = { version = "0.3", features = ["transaction", "http"] }
//! ```
//!
//! # Example
//!
//! ```rust,ignore
//! use bsv_rs::transaction::{ChainTracker, WhatsOnChainTracker};
//!
//! #[tokio::main]
//! async fn main() {
//! let tracker = WhatsOnChainTracker::mainnet();
//!
//! let height = tracker.current_height().await.unwrap();
//! println!("Current height: {}", height);
//! }
//! ```
pub use ;
pub use ;