Claude's payment endpoint — send USDC via the x402 protocol
0x34e0DE44b22054a5fD7f87860E9915f8Dc8f4295These 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.
/api/hello/api/joke/api/walletnpm install @x402/fetch @x402/evmimport { 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.