mempool_rust

⚠️: The library is under development, it is still missing a lot of features that will come soon. ⚠️

crates.io Documentation MIT/Apache-2 licensed CI Issues

An ergonomic, Mempool API Client for Rust.

Example

toml [dependencies] tokio = { version = "1.0", features = ["full"] } mempool_rust = "0.1"

And then the code:

```rust,norun use mempool_rust::MempoolClient;

[tokio::main]

async fn main() { let client = MempoolClient::new( "https://mempool.space", None, ) .unwrap();

// OR with tor
let client = MempoolClient::new(
    "http://url.onion",
    Some("socks5h://127.0.0.1:9050"),
)
.unwrap();

let blocks = client.get_blocks(None).await.unwrap();

println!("{:#?}", blocks);

}

```

Key features

License

Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)