{"version":1,"resources":["POST /api/x402/audit/standard","POST /api/x402/audit/deep","GET /api/x402/shield","POST /api/x402/health-check","POST /mcp"],"manifest":{"name":"WalletGuard","description":"AI smart contract security auditing. Multi-agent analysis with Foundry fork validation.","url":"https://walletguard.ai","logo":"https://walletguard.ai/images/logo.png","version":"1.0.0","x402":{"network":"base","chainId":8453,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","assetName":"USDC","assetDecimals":6,"facilitator":"https://x402.org/facilitator","endpoints":[{"path":"/api/x402/audit/standard","method":"POST","description":"Full multi-agent smart contract security audit (14 agents: 10 Sonnet specialists + Opus synthesis + Opus Cipher adversarial swarm, parallel 3-lens RALPH on every audit)","price":"29000000","priceHuman":"$29.00 USDC","input":{"contentType":"application/json","schema":{"contractAddress":{"type":"string","description":"Contract address (0x...)"},"chainId":{"type":"number","description":"EVM chain ID (1, 8453, 42161, 137, 10)"},"force":{"type":"boolean","description":"Force fresh scan, bypass cache","optional":true},"sourceCode":{"type":"string","description":"Pasted Solidity source (for unverified contracts)","optional":true}}},"output":{"contentType":"application/json","schema":{"auditId":"string","status":"processing","accessToken":"JWT for polling results via SSE","paymentTxHash":"On-chain settlement hash"}},"cacheable":true,"cacheNote":"Returns cached report if source unchanged. Use ?rescan=true to force fresh scan."},{"path":"/api/x402/audit/deep","method":"POST","description":"Deep multi-iteration audit with Opus model, cross-agent correlation, and exploit simulation","price":"199000000","priceHuman":"$199.00 USDC","input":{"contentType":"application/json","schema":{"contractAddress":{"type":"string","description":"Contract address (0x...)"},"chainId":{"type":"number","description":"EVM chain ID (1, 8453, 42161, 137, 10)"},"force":{"type":"boolean","description":"Force fresh scan, bypass cache","optional":true},"sourceCode":{"type":"string","description":"Pasted Solidity source (for unverified contracts)","optional":true}}},"output":{"contentType":"application/json","schema":{"auditId":"string","status":"processing","accessToken":"JWT for polling results via SSE","paymentTxHash":"On-chain settlement hash","tier":"deep"}},"cacheable":true,"cacheNote":"Returns cached report if source unchanged. Use force: true for fresh scan."},{"path":"/api/x402/shield","method":"GET","description":"Pre-transaction contract risk check","price":"10000","priceHuman":"$0.01 USDC","input":{"queryParams":{"address":{"type":"string","description":"Contract address to check"},"chain":{"type":"number","description":"Chain ID (default: 8453)","optional":true}}},"output":{"contentType":"application/json","schema":{"riskScore":"0-100 (lower is safer)","factors":"string[]","auditAvailable":"boolean"}},"latency":"< 100ms"},{"path":"/api/x402/health-check","method":"POST","description":"Wallet approval inventory and permission risk score","price":"10000","priceHuman":"$0.01 USDC"}]},"mcp":{"endpoint":"https://walletguard.ai/mcp","description":"MCP tool server with 6 security tools for AI agents. Authenticated users (session/API key) get tools included in their plan. Anonymous callers pay per-tool via x402 USDC.","discovery":{"path":"/mcp","method":"GET","description":"Tool discovery manifest (free, no auth required)"},"execution":{"path":"/mcp","method":"POST","description":"Tool execution. Accepts session auth, API key (Bearer wg_live_*), or x402 USDC payment.","authMethods":["session","api_key","x402"]},"tools":[{"name":"walletguard_check_function","description":"Analyze a single Solidity function for security vulnerabilities. Returns findings with severity, category, confidence, and remediation.","price":"150000","priceHuman":"$0.15 USDC","priceUsd":"0.15"},{"name":"walletguard_explain_vulnerability","description":"Explain a smart contract vulnerability pattern with examples. Returns description, exploit mechanism, code patterns, and fix guidance. Free when matched from the pattern database; $0.01 if LLM-generated.","price":"10000","priceHuman":"$0.01 USDC","priceUsd":"0.01"},{"name":"walletguard_verify_fix","description":"Verify if a code change resolves a specific security finding. Runs a blind re-audit on the fixed code and compares against the original. Returns verdict (resolved/partial/unresolved), regression check, and score delta.","price":"750000","priceHuman":"$0.75 USDC","priceUsd":"0.75"},{"name":"walletguard_check_upgrade_safety","description":"Check if a proxy upgrade from implementation A to B is safe. Analyzes storage layout collisions, initializer gaps, and access control. Accepts source code directly or fetches from on-chain if proxyAddress is provided.","price":"350000","priceHuman":"$0.35 USDC","priceUsd":"0.35"},{"name":"walletguard_gas_optimize","description":"Find gas optimization opportunities in Solidity code. Identifies redundant storage reads, calldata vs memory usage, immutable/constant opportunities, and loop optimizations.","price":"120000","priceHuman":"$0.12 USDC","priceUsd":"0.12"},{"name":"walletguard_check_standard","description":"Check ERC standard compliance (ERC-20, ERC-721, ERC-1155, etc.). Validates interface completeness, event emissions, return values, and conformance.","price":"80000","priceHuman":"$0.08 USDC","priceUsd":"0.08"}]},"verification":{"endpoint":"https://walletguard.ai/verify","description":"Independently verify any audit report via EIP-712 signature + EAS attestation on Base","attestationContract":"0x4200000000000000000000000000000000000021"},"links":{"documentation":"https://walletguard.ai/docs/api/x402","pricing":"https://walletguard.ai/pricing","github":"https://github.com/CryptoKupo/gestalt"}}}