Skip to main content
x402 Protocol Integration

Micropayments for the Modern Web

We implement the x402 protocol - Coinbase's open standard for HTTP-native payments. Pay per API request with USDC on Solana.

x402 Protocol Backed By

Coinbase

Creator

Cloudflare

Foundation Partner

Google

A2A Integration

Why x402?

The HTTP 402 "Payment Required" status code finally has a protocol.

Instant Micropayments

Pay $0.001 to $100+ per request. Sub-second settlement on Solana.

No Accounts Needed

Just connect a wallet. No signup, no API keys, no authentication.

HTTP Native

Uses standard HTTP 402 status code. Works with any HTTP client.

AI Agent Ready

Built for machine-to-machine payments. Perfect for autonomous agents.

Live Demo

See how x402 handles payment verification in real-time.

Premium API Endpoint

/api/x402/demo

$0.01 USDC
1. Connect Wallet
2. Sign Payment (x402 header)
3. Access Premium Content

This is a simulation. Connect a Solana wallet with USDC to test live payments.

Simple Integration

Add payment requirements to any API endpoint in minutes.

Server (middleware.ts)
// Protect any API endpoint with x402
import { paymentMiddleware } from 'x402-next';

export const middleware = paymentMiddleware(
  "0xYourWallet",
  {
    '/api/premium': {
      price: '$0.05',
      network: 'base',
    },
  }
);
Client (fetch with payment)
// Client-side payment handling
import { wrapFetchWithPayment } from 'x402-fetch';

const fetchWithPayment = wrapFetchWithPayment(
  fetch,
  walletClient
);

const response = await fetchWithPayment('/api/premium');
// Payment is handled automatically!

Our x402 Endpoints

Test our live x402-protected APIs on Solana.

/api/x402/demo$0.01

Basic demo endpoint. Returns protocol info and capabilities.

Try endpoint
/api/x402/insights$0.05

Premium Web3 market insights. Simulated data for demo purposes.

Try endpoint

Ready to Monetize Your APIs?

We can help you implement x402 for your Web3 project. Micropayments, AI agent billing, premium content access - all with zero protocol fees.