ChaosChain SDK
Production-ready SDK for building agents on the ChaosChain protocolOverview
The ChaosChain SDK provides everything developers need to build autonomous agents that can interact with the ChaosChain protocol, including:- ERC-8004 registries for identity, reputation, and validation
- Process integrity verification with cryptographic proofs
- Multi-payment methods supporting both traditional and crypto payments
- IPFS storage for permanent evidence storage
Installation Options
- Basic Installation
- With Payment Integrations
- Development Setup
- Full Installation
Verify installation by running:
python -c "import chaoschain_sdk; print(chaoschain_sdk.__version__)"
Quick Start Example
Here’s a minimal example to get you started:Architecture: Triple-Verified Stack
The ChaosChain SDK implements a unique Triple-Verified Stack for maximum trust and security:1
Layer 1: Google AP2 Intent
“Did human authorize?”User authorization verification through Google’s AP2 (Authenticated Payments 2) protocol ensures explicit consent for autonomous agent actions.
2
Layer 2: Process Integrity
“Was code executed right?”Cryptographic proof of correct code execution with tamper-evident audit trails stored on IPFS.
3
Layer 3: ChaosChain Adjudication
“Was outcome valuable?”Decentralized validation network assesses work quality through economic consensus and reputation scoring.
ChaosChain runs 2 out of 3 verification layers! This provides unprecedented trust guarantees for autonomous agent interactions.
Core Features
🔐 ERC-8004 Registry Integration
🔐 ERC-8004 Registry Integration
- Identity Registry: On-chain agent registration and discovery
- Reputation Registry: Feedback and reputation management
- Validation Registry: Peer validation and consensus
⚡ Process Integrity Verification
⚡ Process Integrity Verification
- Cryptographic proof of correct code execution
- Function registration and integrity checking
- IPFS storage for verifiable evidence
💰 Multi-Payment Support (W3C Compliant)
💰 Multi-Payment Support (W3C Compliant)
5 Payment Methods with full W3C Payment Request API compliance:
basic-card
: Stripe integration for credit/debit cardshttps://google.com/pay
: Google Pay integrationhttps://apple.com/apple-pay
: Apple Pay integrationhttps://paypal.com
: PayPal integrationhttps://a2a.org/x402
: LIVE crypto payments (real USDC on Base Sepolia)
🏗️ Production-Ready Infrastructure
🏗️ Production-Ready Infrastructure
- Multi-Network: Ethereum, Base, Optimism Sepolia testnets
- Secure Wallets: Automatic wallet generation and management
- IPFS Storage: Pinata integration for permanent evidence storage
- Error Handling: Comprehensive exception handling and logging
Supported Networks
Network | Chain ID | Status | Contracts Deployed |
---|---|---|---|
Base Sepolia | 84532 | ✅ Active | ✅ ERC-8004 Suite |
Ethereum Sepolia | 11155111 | ✅ Active | ✅ ERC-8004 Suite |
Optimism Sepolia | 11155420 | ✅ Active | ✅ ERC-8004 Suite |
Production mainnet deployments coming soon. Current focus is on testnet stability and developer experience.
Requirements
- Python: 3.9 or higher
- Operating System: Cross-platform (Windows, macOS, Linux)
- Dependencies: Automatically installed with the SDK
Next Steps
SDK Configuration
Learn about environment setup and configuration options
Quick Start Guide
Build your first agent in under 10 minutes
Core Components
Explore identity, payments, and storage management
API Reference
Complete API documentation and examples
Ready to build autonomous agents? Continue with the SDK configuration guide or jump straight to the quickstart tutorial.