Skip to main content

Crate circle_developer_controlled_wallets

Crate circle_developer_controlled_wallets 

Source
Expand description

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, where your service holds the signing keys on behalf of users.

§Covered Endpoints

ModuleFunctionality
models::wallet_setCreate and manage wallet sets
models::walletCreate wallets, query balances and NFTs
models::transactionInitiate and track on-chain transactions
models::signingSign messages and typed data
models::tokenLook up token metadata

§Quick Start

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(&params).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.

§Error Handling

Every fallible operation returns Error, which captures both HTTP-level transport failures and API-level error responses from Circle.

Re-exports§

pub use client::DeveloperWalletsClient;
pub use error::Error;

Modules§

client
HTTP client for the Developer-Controlled Wallets API.
error
Error types for the circle-developer-controlled-wallets crate.
models
Data models for the Circle Developer-Controlled Wallets API.