bitcoind_async_client/
lib.rs

1//! BitcoinD JSON-RPC Async Client
2//!
3//! # Features
4//!
5//! - `29_0`: Enable support for Bitcoin Core v29
6//!
7//! # Usage
8//!
9//! ```rust,ignore
10//! use bitcoind_async_client::Client;
11//!
12//! let client = Client::new("http://localhost:8332".to_string(), "username".to_string(), "password".to_string(), None, None).await?;
13//!
14//! let blockchain_info = client.get_blockchain_info().await?;
15//! ```
16//!
17//! # License
18//!
19//! This work is dual-licensed under MIT and Apache 2.0.
20//! You can choose between one of them if you use this work.
21
22pub mod client;
23pub mod error;
24pub mod traits;
25
26// TODO: remove this once upstreamed PRs are merged
27pub mod types;
28
29pub use client::*;
30
31// v29
32#[cfg(feature = "29_0")]
33pub use client::v29;
34
35#[cfg(test)]
36pub mod test_utils;