Pay for code402

Two ways: card (pre-paid credits, no crypto) or x402 (USDC on Base, for agents). Cheapest tool right now: simulate-spend-sentinel at $0.000999 (live dynamic quote).

Pay by card — no wallet, no crypto

Buy pre-paid credits and call any of the 28 tools with an API key. Credits decrement at the live dynamic price (watch /health).

x402 · USDC on Base (for agents)

Any x402 buyer pays automatically. Get USDC on Base once, then each call auto-settles with a signed receipt.

0 · Get USDC on Base (one time)

Fund with Coinbase →  Coinbase's hosted Onramp, pre-bound to your wallet + USDC on Base. Non-custodial: funds deliver straight from Coinbase to your wallet. No signup.

On any major exchange: buy USDC, then withdraw to your wallet choosing the Base network in the network picker. Already on another chain? Bridge USDC to Base with any standard bridge. You need no ETH for gas — settlement is gas-sponsored. A few dollars of USDC covers thousands of calls.

1 · Official SDK (recommended)

npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));  // funded wallet
const fetch2 = wrapFetchWithPayment(fetch, client);
await fetch2("https://rail.akrivis.in/v1/tools/iban-check/call", { method:"POST",
  headers:{ "content-type":"application/json" },
  body: JSON.stringify({ input:{ iban:"GB82 WEST 1234 5698 7654 32" } }) });
// 402 -> auto-sign -> auto-settle (USDC on Base) -> 200 + signed receipt

2 · Any MCP client

POST https://rail.akrivis.in/mcp  { "method":"tools/call", "params":{ "name":"iban_check", ... } }
// the 402 challenge comes back inside the tool error — sign, retry with X-PAYMENT

3 · Verify what you paid for

every 200 carries receipt: { v:"XDR-1", input_hash, output_hash, amount, tx, signer }
recover the signer from https://rail.akrivis.in/.well-known/mcp.json receipt_signing_address

Prices are dynamic: idle decays to the floor, demand bumps them. Live quotes: GET /health. Free tier: first 20 calls/day.