rig-onchain-kit 1.0.0

Blockchain actions for AI agents
Documentation
#[cfg(feature = "http")]
use {
    privy::{config::PrivyConfig, Privy},
    rig_onchain_kit::http::server::run_server,
};

#[cfg(feature = "http")]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
    // Initialize Privy client
    let privy_client =
        Privy::new(PrivyConfig::from_env().map_err(|e| {
            std::io::Error::new(std::io::ErrorKind::Other, e)
        })?);

    // Run server with just the Privy client
    // Agents will be created dynamically based on requests
    run_server(privy_client).await
}

#[cfg(not(feature = "http"))]
fn main() {
    println!("This binary requires the 'http' feature");
}