How It Works
1
Initial Request
Your code sends the API request to the Corbits proxy endpoint without payment.This request will receive an HTTP 402 response (shown in the next step) since payment is required.
2
Payment Required (402)
The proxy responds with HTTP 402 and payment requirements:This response tells the payment handler:
- Which network is accepted (solana-mainnet-beta)
- How much to pay (1000base units = 0.001 USDC with 6 decimals, or10000= 0.01 USDC)
- Which token is accepted (EPjF...is the USDC mint address)
- Where to send payment (corzH...is the recipient address)
3
Automatic Payment
Using Faremeter’s payment-enabled fetch wrapper, the payment is handled automatically:The wrapped fetch automatically:
- Creates a Solana transaction
- Transfers 0.001 USDC to the specified address
- Retries the request with payment proof
4
Success Response
The proxy validates your payment and returns the API result:
Benefits
No API Keys
No need to manage API keys or authenticate directly with partners
Pay Per Use
Only pay for what you use at 0.001)
Instant Access
No sign-up or approval process required
Web3 Native
Payment via cryptocurrency using any wallet
Try with our partners
Solana RPC Infrastructure
Blockchain Analytics & Data
Trading & Swaps
DFlow
Intelligent trade execution with best-price routing
Jupiter
Solana’s first DEX aggregator
Titan Exchange
A high-performance meta-DEX aggregator built on Solana
Web3 Infrastructure
Authentication
No traditional API keys required. The x402 payment protocol handles authentication:- For you: Provide a funded Solana wallet
- For the proxy: Validates your payment proof
- For the partner: Proxy injects authentication credentials
Support
For questions or issues:- Email: support@corbits.dev
- Telegram: Join Community
- GitHub: faremeter