Expand description
§Blocking Esplora Client
This module implements BlockingClient, a synchronous HTTP client for
interacting with an Esplora server by way of bitreq.
Use this client from synchronous applications, command-line tools, tests, or code paths where blocking the current thread is acceptable. Each method sends the request immediately and returns only after the response body has been read and decoded.
The client is configured through Builder, including the
base URL, proxy, socket timeout, custom headers, and retry count.
§Example
let client = esplora_client::Builder::new("https://mempool.space/api").build_blocking();
let height = client.get_height()?;
Structs§
- Blocking
Client - A synchronous client for interacting with an Esplora API server.