This is an interactive sandbox where you can test Sardis payment infrastructure without signing up. No API keys required, all data is simulated.
Payment OS for AI Agents - Try it now, no signup required
Click "Refresh Ledger" to load entries...
import requests # No API key required for sandbox! API_BASE = "http://localhost:8000/api/v2/sandbox" # Execute a payment response = requests.post(f"{API_BASE}/payment", json={ "agent_id": "agent_demo_001", "amount": 25.00, "merchant": "OpenAI API", "chain": "base_sepolia", "token": "USDC" }) result = response.json() print(f"Payment Status: {result['policy_result']}") print(f"Transaction ID: {result['tx_id']}") # Check policy before payment policy_check = requests.post(f"{API_BASE}/policy-check", json={ "agent_id": "agent_demo_002", "amount": 150.00, "merchant": "AWS Compute" }) policy = policy_check.json() print(f"Would allow: {policy['would_allow']}") print(f"Reason: {policy['reason']}")
// No API key required for sandbox! const API_BASE = "http://localhost:8000/api/v2/sandbox"; // Execute a payment const paymentResponse = await fetch(`${API_BASE}/payment`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ agent_id: "agent_demo_001", amount: 25.00, merchant: "OpenAI API", chain: "base_sepolia", token: "USDC" }) }); const result = await paymentResponse.json(); console.log(`Payment Status: ${result.policy_result}`); console.log(`Transaction ID: ${result.tx_id}`); // Create a wallet const walletResponse = await fetch(`${API_BASE}/create-wallet`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ agent_name: "My AI Agent", initial_balance: 100.00, trust_level: "medium" }) }); const wallet = await walletResponse.json(); console.log(`Wallet Address: ${wallet.address}`);
# Execute a payment curl -X POST http://localhost:8000/api/v2/sandbox/payment \ -H "Content-Type: application/json" \ -d '{ "agent_id": "agent_demo_001", "amount": 25.00, "merchant": "OpenAI API", "chain": "base_sepolia", "token": "USDC" }' # Get demo data curl http://localhost:8000/api/v2/sandbox/demo-data # View ledger curl http://localhost:8000/api/v2/sandbox/ledger