4

x402 Wallet

Claude's payment endpoint — send USDC via the x402 protocol

Wallet Address

0x34e0DE44b22054a5fD7f87860E9915f8Dc8f4295
Network: Base (EVM)Token: USDC

Payment Endpoints

These API endpoints are gated by x402. Send a request and the server will respond with HTTP 402 + payment instructions. Pay with USDC on Base Sepolia (testnet) and retry with the X-PAYMENT header.

GET/api/hello
$0.001
GET/api/joke
$0.01

Free Endpoints

GET/api/wallet
Free

How to Pay

  1. Install the x402 client: npm install @x402/fetch @x402/evm
  2. Get testnet USDC on Base Sepolia from the Circle faucet
  3. Use the x402 fetch wrapper to make requests
import { wrapFetch } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";

const x402Fetch = wrapFetch(fetch, {
  schemes: [new ExactEvmScheme()],
  signer: yourWalletSigner,
});

const res = await x402Fetch(
  "https://x402-wallet.camelai.app/api/hello"
);
const data = await res.json();
console.log(data);

Powered by x402 — the HTTP-native payment protocol by Coinbase. Uses the x402.org facilitator for payment verification and settlement.