Quickstart · Base Pay only on success · $0 ETH gas

Connect your agent in minutes.

Plug ExactJSON into Claude, Cursor, or your own TypeScript runtime via MCP, @x402/fetch, or any x402 wallet. No accounts, no API keys, and no subscriptions.

Step 01
Connect your client Agent Prompt, MCP, or SDK
Step 02
Add a Base USDC key $0 ETH gas · $0.05 spend cap
Step 03
Verify live Free health check · $0 on errors

Step 1 — Connect your client

Pack:
Selected: All 31 live tools · Single packs (<=15 tools) give sharpest MCP tool selection

Paste into Cursor, Claude Code, Antigravity, Lovable, Bolt, or Replit — your coding agent reads /llms.txt and wires the client safely.

Agent Prompt · All 31 live tools
Read https://exactjson.com/llms.txt and connect my app to all 5 ExactJSON packs (https://exactjson.com/mcp/all or any /v1/* endpoint).

Requirements:
1. Use @x402/fetch with @x402/evm/exact/client (or exactjson-mcp if wiring an MCP client).
2. Read BUYER_PRIVATE_KEY from process.env (.env only, add .env to .gitignore, never hardcode keys).
3. Enforce a hard spend limit of maxAmountPerPayment: "$0.05".
4. Handle non-200 responses cleanly (400/404/502/503 cost $0.00 — never treat 502 as safe).
5. Start by testing https://exactjson.com/v1/evm/safety?address=0x4200000000000000000000000000000000000006&chain=base and show me the parsed JSON result.
Reads /llms.txt · Enforces $0.05 spend cap 400 / 404 / 502 = $0.00

Paste into Claude Desktop, Cursor, or Windsurf. Signing stays local on your machine, and only HTTP 200 answers charge.

Local MCP · npx -y exactjson-mcp --pack all
{
  "mcpServers": {
    "exactjson": {
      "command": "npx",
      "args": [
        "-y",
        "exactjson-mcp",
        "--pack",
        "all"
      ],
      "env": {
        "BUYER_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY",
        "MAX_PAYMENT_USD": "$0.05"
      }
    }
  }
}
Local EIP-3009 signing · MAX_PAYMENT_USD=$0.05 $0 ETH gas

Already using AgentCash or an x402-native MCP client? Point directly to https://exactjson.com/mcp/all — no local bridge needed.

Drop into Node.js or TypeScript with @x402/fetch and viem. Swap the URL for any of our 31 endpoints.

TypeScript · All 31 live tools
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client()
  .setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, {
  signer: privateKeyToAccount(process.env.BUYER_PRIVATE_KEY),
});

const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://exactjson.com/v1/evm/safety?address=0x4200000000000000000000000000000000000006&chain=base");
console.log(await res.json());
Client cap: maxAmountPerPayment = $0.05 Payment is authentication

Step 2 — Add a Base USDC signing key

Gasless EIP-3009 · $0 ETH needed

Fund a dedicated low-balance EVM address with $2–$5 of native Base USDC (100–1,000 live calls) and keep MAX_PAYMENT_USD="$0.05" set. Because x402 settles gasless EIP-3009 authorizations, $0 ETH is required for gas.

Native Base Mainnet USDC Contract (not legacy bridged USDbC)
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
$0 ETH gas · Local EIP-3009 signing Base Mainnet
Key format: Local signing requires an exportable EOA private key (0x...). Passkey-only smart wallets do not export a raw private key.

Step 3 — Verify live

Pay only on HTTP 200

Smoke-test before spending

Run exactjson_health ($0.00) in MCP, or run curl -i against any /v1/* route to inspect the live PAYMENT-REQUIRED quote before settling a paid call.

Non-200 never settles: Invalid inputs (400), missing targets (404), fail-closed outages (502), and pauses (503) always charge $0.00.

Spend discipline

  • Keep MAX_PAYMENT_USD="$0.05" (or maxAmountPerPayment: "$0.05") enforced client-side.
  • Keep BUYER_PRIVATE_KEY in an ignored .env or local MCP config — ExactJSON never sees your key.
  • Fund the signing address with only the operational balance your workflow needs.
Payment rejected? Verify native Base USDC vs bridged USDbC
Confirm the signing address holds native Base USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), not legacy bridged USDbC.
Key parse error? Check 0x prefix
BUYER_PRIVATE_KEY must be a 64-character hex string prefixed with 0x and no surrounding whitespace.
Spend cap exceeded? Check MAX_PAYMENT_USD
Keep MAX_PAYMENT_USD="$0.05" in MCP (or maxAmountPerPayment: "$0.05" in the SDK). All 31 ExactJSON endpoints are $0.005–$0.02.