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
41
42
43
44
45
46
47
48
49
50
51
//! Rust client for the Circle Web3 Services Developer-Controlled Wallets API.
//!
//! This crate provides a typed, async HTTP client for the
//! [Circle W3S Developer-Controlled Wallets API](https://developers.circle.com/api-reference/w3s/developer-controlled-wallets),
//! where your service holds the signing keys on behalf of users.
//!
//! ## Covered Endpoints
//!
//! | Module | Functionality |
//! |--------|---------------|
//! | [`models::wallet_set`] | Create and manage wallet sets |
//! | [`models::wallet`] | Create wallets, query balances and NFTs |
//! | [`models::transaction`] | Initiate and track on-chain transactions |
//! | [`models::signing`] | Sign messages and typed data |
//! | [`models::token`] | Look up token metadata |
//!
//! ## Quick Start
//!
//! ```no_run
//! use circle_developer_controlled_wallets::{
//! DeveloperWalletsClient, models::wallet::ListWalletsParams,
//! };
//!
//! #[tokio::main]
//! async fn main() -> Result<(), circle_developer_controlled_wallets::Error> {
//! let client = DeveloperWalletsClient::new("your_api_key");
//! let params = ListWalletsParams::default();
//! let wallets = client.list_wallets(¶ms).await?;
//! println!("Found {} wallets", wallets.data.wallets.len());
//! Ok(())
//! }
//! ```
//!
//! ## Authentication
//!
//! All requests require a Circle API key, which can be created in the
//! [Circle Developer Console](https://console.circle.com).
//!
//! ## Error Handling
//!
//! Every fallible operation returns [`Error`], which captures both HTTP-level
//! transport failures and API-level error responses from Circle.
pub use DeveloperWalletsClient;
pub use Error;