circle-compliance 0.1.0

Rust client for the Circle Web3 Services Compliance Engine API
Documentation

circle-compliance

crates.io docs.rs License: Apache-2.0 Rust

Async Rust client for the Circle Web3 Services Compliance Engine API.

The Compliance Engine enables automated blockchain address and transaction screening for OFAC sanctions lists and AML/KYC risk assessment.

Installation

[dependencies]
circle-compliance = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }

Quick Start

use circle_compliance::{
    ComplianceClient,
    models::screening::{Chain, ScreenAddressRequest},
};

#[tokio::main]
async fn main() -> Result<(), circle_compliance::Error> {
    let client = ComplianceClient::new("your_api_key");
    let request = ScreenAddressRequest {
        idempotency_key: "550e8400-e29b-41d4-a716-446655440000".to_string(),
        address: "0xTargetAddress".to_string(),
        chain: Chain::Eth,
    };
    let result = client.screen_address(&request).await?;
    println!("Screening result: {:?}", result);
    Ok(())
}

API Coverage

Area Endpoints
Address Screening Screen a blockchain address for sanctions / risk

Authentication

Obtain an API key from the Circle Developer Console and pass it to the client constructor, or set the CIRCLE_API_KEY environment variable.

License

Licensed under the Apache-2.0 License.