proofgate 0.1.1

Official ProofGate SDK — blockchain transaction validation and guardrails for AI agents
Documentation
//! # ProofGate SDK
//!
//! Blockchain guardrails for AI agents. Validate transactions
//! before execution to prevent wallet drains, infinite approvals,
//! and other security risks.
//!
//! ## Example
//!
//! ```rust,no_run
//! use proofgate::{ProofGate, ValidateRequest};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), proofgate::Error> {
//!     let pg = ProofGate::new("pg_your_api_key")?;
//!
//!     let result = pg.validate(ValidateRequest {
//!         from: "0xYourAgentWallet".to_string(),
//!         to: "0xContractAddress".to_string(),
//!         data: "0xa9059cbb...".to_string(),
//!         value: Some("0".to_string()),
//!         guardrail_id: None,
//!         chain_id: None,
//!     }).await?;
//!
//!     if result.safe {
//!         // Execute the transaction
//!         println!("Transaction approved!");
//!     } else {
//!         println!("Blocked: {}", result.reason);
//!     }
//!
//!     Ok(())
//! }
//! ```

mod client;
mod error;
mod types;

pub use client::ProofGate;
pub use error::Error;
pub use types::*;