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.
[dependencies]
circle-compliance = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }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(())
}| Area | Endpoints |
|---|---|
| Address Screening | Screen a blockchain address for sanctions / risk |
Obtain an API key from the Circle Developer Console and pass it to the client constructor, or set the CIRCLE_API_KEY environment variable.
Licensed under the Apache-2.0 License.