Build with Conduit
Conduit is the first public x402 facilitator on Arc Network. Gate any API, content, or data behind USDC micropayments — paid automatically by AI agents and HTTP clients.
Facilitator URL
conduitpay.xyz/api/x402
Demo endpoint
/api/arc-stats
Network
Arc Testnet · eip155:5042002
Overview
x402 is an HTTP-native payment protocol. Instead of blocking access with a subscription or API key, your server returns a 402 Payment Required response. The client pays and retries — automatically.
Conduit is the facilitator. It handles verification, settlement, and the human pay page. You focus on your API. Conduit handles the money.
For AI agents
Agents hit your endpoint, receive a 402, sign a USDC authorization, and retry automatically. Zero human involvement.
For humans
Browser users see a clean MetaMask pay page. They connect, pay, and get your content.
For developers
One npm package. One line of code. No backend changes, no new infrastructure. Works with any Next.js API route.
For Arc
Conduit is the first and only public x402 facilitator on Arc. Every payment settles in USDC on Arc in under a second.
Quick Start
Get a USDC-gated API route live in under 5 minutes.
1. Install the package
2. Wrap your route
3. Test it
Live demo
Hit conduitpay.xyz/api/arc-stats in your browser. Pay 0.001 USDC. Get live Arc Network stats back in under a second.
How It Works
The full payment flow from request to response:
Client hits your API
No payment header — your route returns 402 with a PAYMENT-REQUIRED header containing amount, token, network, and recipient.
Client pays on Arc
AI agents sign an EIP-3009 USDC authorization on Arc and retry with PAYMENT-SIGNATURE header. Browsers are redirected to the Conduit pay page.
Conduit verifies
withPayment() calls /api/x402/verify. Checks signature, amount, recipient, nonce not already used, and USDC balance on Arc.
Handler is called
Verification passed — your handler runs and the response is served to the client immediately.
Conduit settles
withPayment() calls /api/x402/settle asynchronously. Conduit executes the USDC transfer on Arc. The payment confirms on-chain.
Security: Every EIP-3009 authorization has a unique nonce. Conduit checks authorizationState on the Arc USDC contract before processing. Replay attacks are impossible.
npm Package
@ace_won/x402 is a drop-in middleware for Next.js 14+. Install once, use on any route.
Install
All options
API Endpoints
All endpoints live at conduitpay.xyz
/api/x402
Facilitator discovery — returns supported networks, assets, and facilitator info.
/api/x402/verify
Verify a payment payload. Checks signature, amount, recipient, nonce, and USDC balance.
/api/x402/settle
Execute the on-chain USDC transfer. Called after your handler serves the response.
/api/x402/payments
Admin — full payment history through the facilitator. Requires x-wallet-address header.
/api/arc-stats
Live demo endpoint. Pay 0.001 USDC to receive live Arc Network block stats.
Verify
Call POST /api/x402/verify before serving your resource. withPayment() does this automatically.
Request body
Response — valid
Response — invalid
What gets checked
Settle
Call POST /api/x402/settle after serving your resource. withPayment() calls this automatically in the background.
Request body
Response
Marketplace
The Conduit Marketplace is a public directory of x402-gated APIs. List your API so AI agents and developers can discover and pay for it automatically.
List your API
Submit your x402 endpoint. Set a USDC price per request. Earn automatically.
Get discovered
AI agents and developers browse by category. Your API is visible to the entire Arc ecosystem.
Earn per request
No subscriptions. Every request pays you in USDC on Arc. Conduit takes 0.5%.
Build your x402 endpoint
Use withPayment() to gate any Next.js route. Test locally with curl.
Submit to the marketplace
Go to conduitpay.xyz/marketplace/submit. Fill in name, description, endpoint URL, price, and category.
Get approved
Conduit reviews your listing within 24 hours. You receive an email when approved.
Start earning
Your API is live. Agents and developers pay per request in USDC automatically.
Network Details
Add Arc Testnet to MetaMask
Get testnet USDC
Go to faucet.circle.com → select Arc Testnet → paste your wallet address.
Code Examples
Basic — 0.001 USDC per request
Pay directly to your wallet
POST endpoint — AI inference
Multiple price tiers
Ready to build?
Start accepting USDC micropayments on Arc. List on the marketplace and let AI agents find you.
