x402 Agent-Payable Content

Agent-Payable Content Gates

Gate any resource with HTTP 402. AI agents discover it on 0G Storage, read pricing from x402 headers, and pay autonomously with USDC on Base. See live agent demo →

🔍

Verify access

GET /api/paywalls/[id]/verify → returns 200 (paid) or 402 (not paid)

💳

Pay on-chain

User sends USDC on Base, submits txHash to /api/paywalls/[id]/pay

Access granted

200 response with content data. Manifest published to 0G for agents.

Check paywall access

x402 Protocol

Standard HTTP response headers

HTTP/1.1 402 Payment Required
X-Payment-Required: true
X-Price: 10.00 USDC
Content-Type: application/json