Everything you need to monetize and consume paid APIs with x402wrap
x402wrap lets you monetize any API endpoint in seconds using the x402 protocol on Solana.
Go to the home page, enter your API URL, set a price, and provide your Solana wallet address
Copy the generated x402wrap.com link and share it with your users
Every request to your wrapped API triggers an instant USDC payment to your wallet
x402wrap acts as a payment gateway for your APIs. Here's what happens when someone calls your wrapped endpoint:
All payments are instant, cryptographically verified, and sent directly to your wallet with zero intermediaries.
Simply wrap your existing API endpoint with x402wrap:
https://api.yoursite.com/datahttps://x402wrap.com/abc123xyzRecommended pricing for different use cases:
Track your earnings in real-time at:
https://x402wrap.com/stats/YOUR_LINK_IDTo call a paid API, include payment proof in your request headers:
// Using fetch()const response = await fetch('https://x402wrap.com/abc123xyz', {method: 'GET',headers: {'x-payment-signature': paymentSignature,'x-payment-from': yourWalletAddress,}});
Send USDC to the API provider's wallet address
Wait for transaction confirmation on Solana
Include signature in headers when calling the wrapped API
// 402 Payment Required{"error": "Payment Required","payment": {"recipient": "7xKXtaoaYJ...xyz","amount": 0.01,"currency": "USDC"}}
| Header | Required | Description |
|---|---|---|
x-payment-signature | Yes | Solana transaction signature proving payment |
x-payment-from | Yes | Payer's Solana wallet address |
x-forwarded-by | No | Set to "x402wrap" (informational) |
Autonomous AI agents can pay for APIs without credit cards
Sell access to your datasets on a per-query basis
Monetize image generation, text processing, or embeddings
Provide paid blockchain data feeds and price oracles
x402 is an open-source payment protocol by Coinbase that enables instant micropayments in USDC via HTTP. It uses the 402 Payment Required status code.
No! Just paste your API URL, set a price, and share the generated link. x402wrap handles all payment verification.
Zero platform fees. You receive 100% of payments directly in your wallet. Only Solana network fees apply (~$0.00001).
Currently, you need to create a new link to change pricing. Dynamic pricing is coming in a future update.
Yes! Solana handles 65,000+ TPS with sub-second finality, making it perfect for high-frequency API calls.
Join our community or reach out to our team