Expand description
§prova-agent-sdk
Behavior attestation SDK for AI agents on Solana.
Wrap any agent action in a cryptographic receipt — 5 lines from cargo add to verified on-chain.
§Quick Start
use prova_agent_sdk::{ProvaClient, ProvaConfig, AttestationBuilder, ActionType};
use solana_sdk::signature::Keypair;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let operator = Keypair::new();
let agent = Keypair::new();
let client = ProvaClient::new(agent, ProvaConfig::default());
let reg = client.register_agent(&operator, None).await?;
println!("Agent PDA: {}", reg.agent_pda);
let hash = ProvaClient::hash_action("swap 100 USDC for SOL on Jupiter");
let att = client.attest(&operator, hash, ActionType::Transaction, false).await?;
println!("Tx: {}", att.explorer_url);
Ok(())
}Re-exports§
pub use builder::AttestationBuilder;pub use client::ProvaClient;pub use client::PROVA_PROGRAM_ID;pub use client::AGENT_SEED;pub use client::MAX_BATCH_ATTESTATIONS;pub use errors::ProvaError;pub use types::ActionType;pub use types::AgentAccount;pub use types::AttestParams;pub use types::AttestResult;pub use types::AttestationPayload;pub use types::AttestationResult;pub use types::HistoryQuery;pub use types::ProvaConfig;pub use types::RegisterAgentResult;pub use types::VerifyResult;