ChaosChain Genesis Studio: The first end-to-end commercial prototype for ERC-8004. Demonstrating on-chain agent identity, verifiable work, direct USDC payments, and the foundation for IP monetization.
chaoschain-genesis-studio is a growing Python project in the AI payments / x402 ecosystem, focused on Agent, Blockchain, Payment. It currently has 40 GitHub stars and 34 forks, and sits alongside related tools like x402-payments-mcp, ProwlFi, AgenticDeFi-Trainer, AgenticDeFi-Trainer, AgenticDeFi-Trainer, Sluice.
This repository demonstrates the complete lifecycle of autonomous commerce, powered by ChaosChain's SDK that provides revolutionary Triple-Verified Stack: Google AP2 Intent Verification + ChaosChain Process Integrity + ChaosChain Adjudication. See AI agents establish on-chain identity via ERC-8004, perform verifiable work with cryptographic execution proofs, and handle crypto payments (x402 USDC on Base/Ethereum or direct A0GI transfers on 0G).
demo_base_install.py - Learn core SDK features (ERC-8004, x402, wallet management) in 30 seconds with zero external dependencies. Perfect for new users!
genesis_studio.py - Explore the full triple-verified stack with a complete multi-agent system (Alice, Bob, Charlie) performing smart shopping analysis, validation, and crypto payments - powered by 0G Storage, Compute, and Inference. Perfect for advanced integrations!
Start with the base demo, then explore Genesis Studio's full capabilities!
Perfect for: Learning the core SDK features without external dependencies.
# Install the base SDK
pip install chaoschain-sdk
# Clone the repository
git clone https://github.com/ChaosChain/chaoschain-genesis-studio.git
cd chaoschain-genesis-studio
# Run the base install demo
python demo_base_install.py
What works out-of-the-box:
No external dependencies needed! The base demo runs on Base Sepolia testnet with clear instructions for getting testnet tokens.
Perfect for: Exploring the complete triple-verified stack with 0G Storage, Compute, and Inference.
# Install with 0G providers
pip install chaoschain-sdk[0g]
pip install crewai crewai-tools
# Clone the repository
git clone https://github.com/ChaosChain/chaoschain-genesis-studio.git
cd chaoschain-genesis-studio
# Set up 0G credentials in .env
# ZEROG_TESTNET_RPC_URL=https://rpc-testnet.0g.ai
# ZEROG_TESTNET_PRIVATE_KEY=your_key
# Run the full Genesis Studio demo (requires 0G testnet setup)
python genesis_studio.py
What you'll see:
Note: Genesis Studio is pre-configured for 0G Testnet and requires 0G-specific setup. Use the base demo first to understand core concepts!
Basic Installation (ERC-8004 v1.0 + x402 + Local IPFS):
pip install chaoschain-sdk
With Optional Providers:
Storage Providers:
pip install chaoschain-sdk[0g-storage] # 0G Storage (decentralized)
pip install chaoschain-sdk[pinata] # Pinata (cloud IPFS)
pip install chaoschain-sdk[irys] # Irys (Arweave permanent)
pip install chaoschain-sdk[storage-all] # All storage providers
Compute Providers:
pip install chaoschain-sdk[0g-compute] # 0G Compute (TEE-verified AI)
pip install chaoschain-sdk[compute-all] # All compute providers
Full Stacks:
pip install chaoschain-sdk[0g] # 0G Full Stack (Storage + Compute)
pip install chaoschain-sdk[all] # Everything (all providers)
Development:
pip install chaoschain-sdk[dev] # With dev tools (pytest, black, mypy)
Google AP2 (optional, for intent verification):
pip install git+https://github.com/google-agentic-commerce/AP2.git@main
| Feature | demo_base_install.py |
genesis_studio.py |
|---|---|---|
| Target Audience | New users learning the SDK | Advanced users exploring full stack |
| Installation | pip install chaoschain-sdk |
Requires 0G providers + CrewAI |
| Network | Base Sepolia (stable RPC) | 0G Testnet (requires setup) |
| Dependencies | None (works out-of-box) | 0G Storage/Compute SDKs, Node.js |
| ERC-8004 v1.0 | ✅ Identity + Metadata | ✅ Full registry system |
| x402 Payments | ✅ Coinbase protocol (USDC) | ✅ Direct A0GI transfers |
| Storage | Local IPFS (optional) | 0G Storage + IPFS fallback |
| Compute | Process integrity only | 0G Compute + TEE verification |
| AI Agents | Single SDK instance | Multi-agent CrewAI system |
| Complexity | ⭐ Beginner friendly | ⭐⭐⭐ Advanced |
| Run Time | ~30 seconds | ~5 minutes (full workflow) |
Recommendation: Start with demo_base_install.py to understand core SDK concepts, then explore genesis_studio.py for the complete triple-verified stack with 0G integration.
Genesis Studio is a comprehensive example implementation that demonstrates the full capabilities of the ChaosChain SDK. It showcases how to build production-ready AI agent systems with:
This is more than just an example of ERC-8004. It's a working blueprint for the Triple-Verified Stack - the world's first comprehensive verification system for AI agent commerce:
╔══════════════════════════════════════════════════════════════════════╗
║ 🔗 TRIPLE-VERIFIED STACK 🔗 ║
║ ║
║ Layer 3: ChaosChain Adjudication 🎯 "Was outcome valuable?" ║
║ Layer 2: ChaosChain Process Integrity ⚡ "Was code executed right?" ║
║ Layer 1: Google AP2 Intent 📝 "Did human authorize?" ║
║ ║
║ ChaosChain runs 2 out of 3 verification layers! ║
╚══════════════════════════════════════════════════════════════════════╝
Google AP2 Intent Verification (Google's Official Protocol)
intent_*) and Cart IDs (cart_*) stored on IPFS with JWT authorization tokensChaosChain Process Integrity (Our Innovation)
proof_*) stored on IPFS with code hashesChaosChain Adjudication (Our Innovation)
AI agents in our ecosystem can:
This demo showcases the complete Triple-Verified Stack that will power the ChaosChain protocol and its future ecosystem of specialized "Studios."
This prototype integrates the world's first Triple-Verified Stack to demonstrate complete, trustless AI agent commerce.
graph TD
subgraph "Phase 1: Identity & Setup"
A[Agent Wallets via Coinbase Agent Kit] --> B{ERC-8004 IdentityRegistry};
B --> C[Triple-Verified Stack Initialization];
end
subgraph "Phase 2: Triple-Verified Stack Execution"
D["Charlie (Client)"] --"step 1. AP2 Intent Mandate"--> E["Alice (Server)"];
E --"step 2. Process Integrity Execution"--> F[ChaosChain Process Integrity];
F --"step 3. Verifiable Work Output"--> G[Stores Evidence on IPFS];
D --"step 4. AP2 Authorization + x402 Settlement"--> E;
G --"step 5. Validation Request"--> H["Bob (Validator)"];
H --"step 6. Quality Assessment"--> I{ERC-8004 ValidationRegistry};
D --"step 7. Validator Payment"--> H;
I --"step 8. Enhanced Evidence"--> J[Triple-Verified Proof Package];
end
subgraph "Phase 3: IP Monetization"
E --"step 9. Registers Verified Work"--> K[Crossmint API];
K --"step 10. Mints IP Asset"--> L{Story Protocol};
end
style B fill:#50fa7b,stroke:#282a36,color:#282a36
style F fill:#ff79c6,stroke:#282a36,color:#282a36
style I fill:#50fa7b,stroke:#282a36,color:#282a36
style J fill:#8be9fd,stroke:#282a36,color:#282a36
style L fill:#ffb86c,stroke:#282a36,color:#282a36
# Basic installation (ERC-8004 + x402 + Local IPFS)
pip install chaoschain-sdk
# Or with 0G integration (Storage + Compute)
pip install chaoschain-sdk[0g]
# Or everything (all providers)
pip install chaoschain-sdk[all]
```bash
git clone https://github.com/ChaosChain/chaoschain-genesis-studio.git
cd chaoschain-genesis-studio
```
# Create environment file (optional - works without it)
cp .env.example .env
Edit .env to add your configuration:
# Required
NETWORK=base-sepolia
BASE_SEPOLIA_RPC_URL=https://base-sepolia.g.alchemy.com/v2/your-key
# Optional - for enhanced features
PINATA_JWT=your-pinata-jwt # For IPFS storage
PINATA_GATEWAY=https://gateway.pinata.cloud
# Treasury (uses default if not set)
TREASURY_ADDRESS=0x20E7B2A2c8969725b88Dd3EF3a11Bc3353C83F70
# Quick SDK test
python -c "
from chaoschain_sdk import ChaosChainAgentSDK, NetworkConfig, AgentRole
# Create a test agent
agent = ChaosChainAgentSDK(
agent_name='TestAgent',
agent_domain='test.example.com',
agent_role=AgentRole.CLIENT,
network=NetworkConfig.BASE_SEPOLIA
)
print(f'✅ SDK working! Agent wallet: {agent.wallet_address}')
"
The ChaosChain SDK provides everything you need to build production-ready AI agents:
ChaosChain owns 2 out of 3 layers!
Payment Methods by Network:
| Network | Payment Method | Token | Protocol Used |
|---|---|---|---|
| 0G Galileo Testnet | Direct transfers | A0GI (native) | web3.py direct |
| Base/Ethereum/Optimism | x402 Protocol | USDC (ERC20) | Coinbase x402 |
About x402: The x402 protocol is Coinbase's HTTP-based payment request/verification protocol. It's currently used for USDC payments on supported EVM chains (Base, Ethereum, Optimism). For 0G Testnet, which uses native A0GI tokens, the SDK performs direct wallet-to-wallet transfers instead.
Features:
ipfs daemon)from chaoschain_sdk import ChaosChainAgentSDK, NetworkConfig, AgentRole
# Create a server agent
server = ChaosChainAgentSDK(
agent_name="MyServerAgent",
agent_domain="server.myapp.com",
agent_role=AgentRole.SERVER,
network=NetworkConfig.BASE_SEPOLIA,
enable_process_integrity=True # Enable verifiable execution
)
print(f"Server agent created: {server.wallet_address}")
# Client creates payment request
payment_request = client.create_x402_payment_request(
cart_id="service_001",
total_amount=10.0,
currency="USDC",
items=[{"name": "AI Analysis Service", "price": 10.0}],
settlement_address=server.wallet_address
)
print(f"Payment request created: {payment_request['cart_id']}")
# Create three agents for a complete workflow
alice = ChaosChainAgentSDK(
agent_name="Alice",
agent_domain="alice.myapp.com",
agent_role=AgentRole.SERVER,
network=NetworkConfig.BASE_SEPOLIA,
enable_process_integrity=True
)
bob = ChaosChainAgentSDK(
agent_name="Bob",
agent_domain="bob.myapp.com",
agent_role=AgentRole.VALIDATOR,
network=NetworkConfig.BASE_SEPOLIA,
enable_process_integrity=True
)
charlie = ChaosChainAgentSDK(
agent_name="Charlie",
agent_domain="charlie.myapp.com",
agent_role=AgentRole.CLIENT,
network=NetworkConfig.BASE_SEPOLIA
)
# Agents can now interact, make payments, and verify work
# With Pinata (enhanced features)
agent_with_storage = ChaosChainAgentSDK(
agent_name="StorageAgent",
agent_domain="storage.myapp.com",
agent_role=AgentRole.SERVER,
network=NetworkConfig.BASE_SEPOLIA,
enable_process_integrity=True # Will use Pinata if configured
)
# Vendor-free mode (no external dependencies)
agent_vendor_free = ChaosChainAgentSDK(
agent_name="FreeAgent",
agent_domain="free.myapp.com",
agent_role=AgentRole.CLIENT,
network=NetworkConfig.BASE_SEPOLIA
# Works without any storage configuration
)
New users: Start with demo_base_install.py to learn core SDK features!
Genesis Studio provides two demos to showcase the ChaosChain SDK:
Perfect for: Understanding core SDK concepts without external dependencies.
# Install the base SDK
pip install chaoschain-sdk
# Run the base demo (works out-of-the-box!)
python demo_base_install.py
What you'll see:
Network: Base Sepolia (stable, well-supported testnet)
Runtime: ~30 seconds
External dependencies: None (all optional)
Perfect for: Exploring the complete triple-verified stack with decentralized infrastructure.
# Install with 0G providers
pip install chaoschain-sdk[0g]
pip install crewai crewai-tools
# Configure 0G (see .env.example)
# ZEROG_TESTNET_RPC_URL=https://rpc-testnet.0g.ai
# ZEROG_TESTNET_PRIVATE_KEY=your_key
# Run the full Genesis Studio demo
python genesis_studio.py
What you'll see:
Network: 0G Testnet (requires setup)
Runtime: ~5 minutes (full multi-agent workflow)
External dependencies: 0G SDK, Node.js, Go CLI (optional)
Note: Genesis Studio is pre-configured for 0G Testnet. For first-time users, we recommend starting with demo_base_install.py!
The demo showcases a complete AI agent workflow:
🚀 ChaosChain Agent SDK initialized for Alice (server)
Network: 0g-testnet | Wallet: 0x1234... | AI Model: 0G Compute (TEE verified)
🚀 ChaosChain Agent SDK initialized for Bob (validator)
Network: 0g-testnet | Wallet: 0x5678... | AI Model: 0G Compute (TEE verified)
🚀 ChaosChain Agent SDK initialized for Charlie (client)
Network: 0g-testnet | Wallet: 0x9abc...
✅ Triple-Verified Stack Complete:
✅ Layer 1: AP2 Intent Verification (Google)
✅ Layer 2: Process Integrity (ChaosChain + 0G Compute TEE)
✅ Layer 3: Adjudication/Accountability (ChaosChain ERC-8004)
✅ Smart shopping analysis completed with TEE verification
💳 Direct A0GI payment: 0.00005 A0GI (Charlie → Alice)
TX: 0x1234... | Explorer: https://chainscan-galileo.0g.ai/tx/0x1234...
🔍 Validation completed: 95/100 score
💳 Validation payment: 0.00005 A0GI (Charlie → Bob)
📦 Evidence stored on 0G Storage (or fallback to IPFS if unavailable)
Note: Output varies by network:
For on-chain transactions, you may need to fund the generated wallets:
# Check wallet addresses
python -c "
from chaoschain_sdk import ChaosChainAgentSDK, NetworkConfig, AgentRole
agents = ['Alice', 'Bob', 'Charlie']
for name in agents:
agent = ChaosChainAgentSDK(name, f'{name.lower()}.test.com', AgentRole.CLIENT, NetworkConfig.BASE_SEPOLIA)
print(f'{name}: {agent.wallet_address}')
"
# Fund each address with Base Sepolia ETH from:
# https://www.coinbase.com/faucets/base-ethereum-sepolia-faucet
Genesis Studio supports the 0G Network for decentralized storage and TEE-verified compute as an optional enhancement:
# Install 0G providers (if not already installed)
pip install chaoschain-sdk[0g] # Includes 0g-storage and 0g-compute
1. Start the 0G gRPC Sidecar (for Storage + Compute):
cd sdk/sidecar-specs/typescript-server
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your 0G private key and RPC URLs:
# ZEROG_PRIVATE_KEY=your_private_key
# ZEROG_EVM_RPC=https://evmrpc-testnet.0g.ai
# ZEROG_INDEXER_RPC=https://indexer-storage-testnet-turbo.0g.ai
# Start the gRPC server
npm start # Runs on localhost:50051
2. Run Genesis Studio (in another terminal):
cd ../../../
python3 genesis_studio.py
The SDK will automatically detect the 0G sidecar and use it for storage and compute. If the sidecar is not available, Genesis Studio falls back to IPFS/Pinata and local execution.
Documentation:
Genesis Studio demonstrates how to build sophisticated AI agent systems using the ChaosChain SDK. The architecture showcases:
graph TD
subgraph "ChaosChain SDK Integration"
A[Client Agent - Charlie] --> B[Server Agent - Alice]
B --> C[Validator Agent - Bob]
A --> C
end
subgraph "Payment Layer"
D[x402 Payment Requests] --> E[USDC Settlement]
E --> F[Treasury Fee Collection]
end
subgraph "Storage Layer"
G[Pinata IPFS] --> H[Local IPFS]
H --> I[Vendor-Free Mode]
end
subgraph "Blockchain Layer"
J[ERC-8004 Identity] --> K[Reputation Registry]
K --> L[Validation Registry]
end
B --> D
B --> G
B --> J
style A fill:#e1f5fe
style B fill:#f3e5f5
style C fill:#e8f5e8
style E fill:#fff3e0
ChaosChainAgentSDK: Core agent creation and managementNetworkConfig: Blockchain network configurationAgentRole: Agent type specification (SERVER, VALIDATOR, CLIENT)Genesis Studio supports flexible configuration through environment variables:
# Blockchain connectivity
NETWORK=base-sepolia
BASE_SEPOLIA_RPC_URL=https://base-sepolia.g.alchemy.com/v2/your-key
# Enhanced IPFS storage
PINATA_JWT=your-pinata-jwt
PINATA_GATEWAY=https://gateway.pinata.cloud
# Custom treasury (uses default if not set)
TREASURY_ADDRESS=0x20E7B2A2c8969725b88Dd3EF3a11Bc3353C83F70
# Agent configuration
ENABLE_PROCESS_INTEGRITY=true
ENABLE_AP2=false # Optional Google AP2 integration
| Option | Description | Requirements |
|---|---|---|
| Pinata | Cloud IPFS with enhanced features | PINATA_JWT |
| Local IPFS | Self-hosted IPFS node | Local IPFS daemon |
| Vendor-Free | No external storage dependencies | None |
The demo script executes a complete, four-phase Triple-Verified Stack workflow:
IdentityRegistry contract, receiving a unique, on-chain AgentID.The following is a sample output from a successful Triple-Verified Stack run, providing a complete, verifiable audit trail on public infrastructure.
| Component | Status | Details | Transaction/Link |
|---|---|---|---|
| Agent Registration | ✅ Success | Alice, Bob, Charlie registered with production-grade RSA keys | ERC-8004 on Base Sepolia with secure key management |
| Google AP2 Intent Verification | ✅ Success | RSA256 JWT signed mandates with Google's official library | Intent: intent_f08acd81, Cart: cart_a371d629 (stored on IPFS with JWT tokens) |
| Process Integrity | ✅ Success | Verifiable execution with cryptographic proofs | Proof: proof_7035cc23 with code hash verification (stored on IPFS) |
| Multi-Payment System (W3C) | ✅ Success | 5 payment methods: Cards, Google Pay, Apple Pay, PayPal + A2A-x402 crypto settlement | View on BaseScan |
| ERC-8004 Validation | ✅ Success | Quality assessment and on-chain validation registry | Score: 16/100 with smart shopping criteria |
| Production Evidence | ✅ Success | Complete proof package with RSA256 signatures and A2A-x402 receipts | View on IPFS |
| IP Registration | 🚧 Pending | Story Protocol integration is being finalized | Crossmint API (Next Step) |
The ChaosChain Agent SDK provides a unified interface for developers to create agents that seamlessly integrate with the Triple-Verified Stack and multi-payment system. Any agent can use this SDK to join the world's first fully verified AI agent economy with complete W3C Payment Request API compliance.
Our SDK supports 5 W3C-compliant payment methods out of the box:
from agents.chaoschain_agent_sdk import ChaosChainAgentSDK
# Initialize SDK with multi-payment support
agent = ChaosChainAgentSDK(
agent_name="MyAgent",
agent_domain="myagent.com",
agent_role="server",
network="base-sepolia",
enable_ap2=True # Enables all payment methods
)
# Get all supported payment methods
payment_methods = agent.get_supported_payment_methods()
print(f"Supported methods: {payment_methods}")
# Output: ['basic-card', 'https://google.com/pay', 'https://apple.com/apple-pay',
# 'https://www.paypal.com/webapps/checkout/js', 'https://chaoschain.com/crypto-pay']
# Process a credit card payment
card_result = agent.execute_traditional_payment(
payment_method="basic-card",
amount=10.0,
currency="USD",
payment_data={
"cardType": "visa",
"cardNumber": "4111111111111111",
"expiryMonth": "12",
"expiryYear": "2025",
"cardSecurityCode": "123"
}
)
print(f"Card payment: {card_result.status} - {card_result.transaction_id}")
# Process a Google Pay payment
gpay_result = agent.execute_traditional_payment(
payment_method="https://google.com/pay",
amount=10.0,
currency="USD",
payment_data={
"googleTransactionId": "gpay_transaction_123",
"paymentMethodType": "CARD"
}
)
print(f"Google Pay: {gpay_result.status} - {gpay_result.transaction_id}")
# Process an Apple Pay payment
apay_result = agent.execute_traditional_payment(
payment_method="https://apple.com/apple-pay",
amount=10.0,
currency="USD",
payment_data={
"transactionIdentifier": "apay_transaction_123",
"paymentMethod": {"type": "credit"}
}
)
print(f"Apple Pay: {apay_result.status} - {apay_result.transaction_id}")
# Create crypto payment request
payment_request = agent.create_x402_payment_request(
cart_id="cart_123",
total_amount=5.0,
currency="USDC",
items=[{"name": "AI Service", "price": 5.0}],
settlement_address="0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7"
)
# Execute crypto payment
crypto_result = agent.execute_x402_crypto_payment(
payment_request=payment_request,
payer_agent="PayerAgent",
service_description="AI Analysis Service"
)
print(f"Crypto payment: {crypto_result.status} - {crypto_result.transaction_hash}")
For E-commerce Platforms:
# Universal payment processor - handles any payment method
def process_customer_payment(payment_method, amount, currency, payment_data):
if payment_method == "https://chaoschain.com/crypto-pay":
# Handle crypto payments via A2A-x402
return agent.execute_x402_crypto_payment(...)
else:
# Handle traditional payments (cards, wallets)
return agent.execute_traditional_payment(
payment_method, amount, currency, payment_data
)
For Payment Gateways:
# Payment method discovery for checkout
available_methods = agent.get_supported_payment_methods()
checkout_options = []
for method in available_methods:
if method == "basic-card":
checkout_options.append({
"id": "cards",
"name": "Credit/Debit Cards",
"types": ["visa", "mastercard", "amex", "discover"]
})
elif "google.com/pay" in method:
checkout_options.append({
"id": "googlepay",
"name": "Google Pay",
"instant": True
})
# ... handle other methods
./keys/# For production payment processing, configure these environment variables:
# Traditional Payment Processors
export STRIPE_SECRET_KEY="sk_live_..." # For card processing
export STRIPE_PUBLISHABLE_KEY="pk_live_..." # For frontend integration
export PAYPAL_CLIENT_ID="your_paypal_client" # For PayPal integration
export PAYPAL_CLIENT_SECRET="your_paypal_secret"
# Google/Apple Pay (Production)
export GOOGLE_PAY_MERCHANT_ID="your_merchant_id"
export APPLE_PAY_MERCHANT_ID="merchant.your.app"
# Crypto Networks
export BASE_SEPOLIA_RPC_URL="https://sepolia.base.org/..."
export ETHEREUM_RPC_URL="https://mainnet.infura.io/v3/..."
# Smart payment method selection based on user preference and availability
def select_optimal_payment_method(user_preference, amount, currency):
available_methods = agent.get_supported_payment_methods()
# Priority order based on fees and speed
if user_preference == "crypto" and "https://chaoschain.com/crypto-pay" in available_methods:
return "https://chaoschain.com/crypto-pay" # Lowest fees
elif user_preference == "instant" and "https://google.com/pay" in available_methods:
return "https://google.com/pay" # Fastest for mobile
elif currency == "USD" and "basic-card" in available_methods:
return "basic-card" # Most universal
else:
return available_methods[0] # Fallback to first available
def robust_payment_processing(payment_method, amount, currency, payment_data):
try:
if payment_method == "https://chaoschain.com/crypto-pay":
result = agent.execute_x402_crypto_payment(...)
else:
result = agent.execute_traditional_payment(
payment_method, amount, currency, payment_data
)
if result.status == "completed":
return {"success": True, "transaction_id": result.transaction_id}
else:
# Handle pending/failed states
return {"success": False, "error": "Payment processing failed"}
except Exception as e:
# Fallback to alternative payment method
fallback_methods = [m for m in agent.get_supported_payment_methods()
if m != payment_method]
if fallback_methods:
return robust_payment_processing(fallback_methods[0], amount, currency, payment_data)
else:
return {"success": False, "error": str(e)}
from agents.chaoschain_agent_sdk import ChaosChainAgentSDK
# Create agents with Triple-Verified Stack support
alice = ChaosChainAgentSDK(
agent_name="Alice",
agent_domain="alice.example.com",
role="server",
enable_ap2=True,
enable_process_integrity=True
)
charlie = ChaosChainAgentSDK(
agent_name="Charlie",
agent_domain="charlie.example.com",
role="client",
enable_ap2=True
)
# Register identities on ERC-8004
alice_id, tx_hash = alice.register_identity()
charlie_id, tx_hash = charlie.register_identity()
# Execute complete Triple-Verified Stack workflow
result = await alice.execute_triple_verified_stack_workflow(
client_agent="Charlie",
validator_agent="Bob",
intent_description="Find me the best winter jacket in green",
constraints={"price_limit": 150.0, "color_preference": "green"},
service_function="find_smart_shopping_deal",
service_inputs={"item_type": "winter_jacket", "color": "green"},
base_payment=2.0
)
print(f"Shopping Result: {result['service_result']}")
print(f"AP2 Authorization: {result['ap2_payment_proof']}")
print(f"Process Integrity: {result['process_integrity_proof']}")
print(f"x402 Settlement: {result['x402_payment_receipt']}")
print(f"Protocol Fees Collected: ${result['protocol_fees_collected']} USDC")
The SDK is included in this repository. To use it in your own projects:
# Clone the repository
git clone https://github.com/ChaosChain/chaoschain-genesis-studio.git
# Install dependencies
pip install -r requirements.txt
# Import the SDK
from agents.chaoschain_agent_sdk import create_server_agent, create_client_agent
# Run the complete Triple-Verified Stack demo
python genesis_studio.py
# Try the simple SDK example
python examples/simple_agent_example.py
ChaosChain's revolutionary Triple-Verified Stack combines three verification layers for complete AI agent trust:
What it verifies: "Did the human authorize this action?"
What it verifies: "Did the agent execute the correct code?"
What it verifies: "Was the work the agent did actually good?"
./keys/config/production.jsonFor Base/Ethereum/Optimism (x402 Protocol):
For 0G Testnet (Direct Transfers):
Universal Features:
Genesis Studio is an open-source example implementation of the ChaosChain SDK. We welcome contributions that help demonstrate the SDK's capabilities!
# Fork and clone the repository
git clone https://github.com/your-username/chaoschain-genesis-studio.git
cd chaoschain-genesis-studio
# Install the ChaosChain SDK
pip install chaoschain-sdk
# Install development dependencies (if any)
pip install -r requirements-dev.txt # If it exists
# Run the demo to test your setup
python genesis_studio.py
When reporting issues, please include:
pip show chaoschain-sdkpython --versionWe're always looking for new ways to showcase the SDK! Consider contributing examples for:
Genesis Studio demonstrates the core capabilities of the ChaosChain SDK. Here are some ideas for what you can build next:
Ready to build the future of AI agent commerce? Start with pip install chaoschain-sdk! 🚀
Built with ❤️ using the ChaosChain SDK
Give AI agents a wallet — x402 payment tools over Model Context Protocol.
The world's first privacy layer for AI agents on Solana — stealth addresses + x402 payments. Every payment lands at a fresh, unlinkable address.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Sluice is a toll booth for the AI-read web. Creators price the smallest unit of what they make, AI agents pay it automatically in USDC, and Circle Gateway batches the tiny payments and settles them on Arc, gas-free and verifiable.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The first agentic payment network: policy-controlled, gasless, and real money-ready. OmniClaw CLI + Financial Policy Engine let autonomous agents pay and earn safely at machine speed.
The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.