Skip to main content

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//! - `30_2`: Enable support for Bitcoin Core v30.2. This is enabled by default.
7//!
8//! # Usage
9//!
10//! ```rust,ignore
11//! use bitcoind_async_client::Client;
12//!
13//! let client = Client::new("http://localhost:8332".to_string(), "username".to_string(), "password".to_string(), None, None, None).await?;
14//!
15//! let blockchain_info = client.get_blockchain_info().await?;
16//! ```
17//!
18//! # License
19//!
20//! This work is dual-licensed under MIT and Apache 2.0.
21//! You can choose between one of them if you use this work.
22
23pub mod client;
24pub mod error;
25pub mod traits;
26
27pub mod types;
28
29pub use corepc_types;
30
31pub use client::*;
32
33#[cfg(test)]
34pub mod test_utils;