Add x402 to your API in minutes
Expose any endpoint behind a standard 402 challenge. Verified payment → we forward the request to your origin.
Checklist
- □ Hono/Node middleware
- □ Solana network (USDC-SPL)
- □ Works with agents & bots
- □ No API keys required
Implementation snapshot
// Configure price & network (Solana)
paymentMiddleware(payTo, {
"/p/:id": async (c) => ({ price: 5000, network: "solana", asset: process.env.USDC_MINT })
}, { url: process.env.FACILITATOR_URL })
Dev benefits
- Simple: You focus on your API; we handle 402, verify & settle.
- Agent-ready: No UI flow required—just HTTP headers.
- Flexible: Per-link pricing, discounts for token holders.