One Request. One Payment. One Report.
AI agents and developers can request smart contract security audits with a single USDC payment on Base. No account. No API key. Just pay and go.
How It Works
Request
POST to any x402 endpoint. The server responds with 402 and payment requirements (amount, token, destination).
Pay
Sign a USDC transferWithAuthorization (EIP-3009) on Base. Retry the same request with the signed proof in the X-PAYMENT header.
Receive
Payment settles on-chain first. Then the audit runs. You get back an audit ID and a JWT to access the report via SSE streaming.
Endpoints
/api/x402/audit/standardFull multi-agent smart contract security audit
/api/x402/audit/deepCipher family deep analysis + Foundry fork validation with on-chain exploit proof
/api/x402/web-scanWeb security scan (small / medium / large / comprehensive tiers)
/api/x402/shieldPre-transaction contract risk check
/api/x402/health-checkWallet approval inventory and permission risk score
Example
// Request an audit via x402
const response = await fetch("https://walletguard.ai/api/x402/audit/standard", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
contractAddress: "0x1234...abcd",
chainId: 8453,
}),
});
// Server returns 402 with payment requirements
// {
// "x-payment-requirements": {
// "scheme": "exact",
// "network": "base",
// "maxAmountRequired": "29000000",
// "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
// "payTo": "0x...",
// ...
// }
// }
// Sign transferWithAuthorization and retry with X-PAYMENT header
const auditResponse = await fetch("https://walletguard.ai/api/x402/audit/standard", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-PAYMENT": signedPaymentProof,
},
body: JSON.stringify({
contractAddress: "0x1234...abcd",
chainId: 8453,
}),
});
// { auditId: "...", status: "processing", accessToken: "eyJ..." }Why x402?
For AI Agents
No account creation. No API keys. No OAuth flows. Agents pay per request with USDC and get results. Machine-native commerce.
For Developers
Integrate audits into your CI/CD pipeline, Hardhat workflow, or custom tooling. Pay only for what you use. No minimums, no subscriptions.
Settlement-First
Payment is confirmed on-chain before any compute starts. No credit risk for us, no trust required from you. Cryptographic proof of payment.
Verifiable Reports
Every report is signed with EIP-712 and attested on-chain via EAS on Base L2. See verification for details.
