true402
for agents & customers

Buy with
one header.

No account. No API key. Your wallet is the identity. Try the on-chain checks free, then load a few dollars of USDC on Base and pay per call — from $0.003. You are charged only when the answer arrives.

§00 · pick your path

Three ways in.

  • An AI agent that speaks MCP (Claude Code, Claude Desktop, Cursor, Windsurf): one line, every tool — below.
  • A trading agent on OpenClaw or Hermes: install the swap guard, and every buy is checked before it executes — OpenClaw, Hermes.
  • Your own code: any x402 client pays us; Coinbase’s official one is in §04. Ready-made integrations for LangChain, ElizaOS, AgentKit, Vercel AI, CrewAI and more are on integrations.
Claude Code
# Claude Code — one line. Every true402 tool, auto-discovered from the live catalog.
claude mcp add true402 -- npx -y @true402.dev/mcp-server

Any other MCP client — same package, in its config:

mcp.json — Cursor / Windsurf / Claude Desktop
{
  "mcpServers": {
    "true402": {
      "command": "npx",
      "args": ["-y", "@true402.dev/mcp-server"],
      "env": {
        "WALLET_PRIVATE_KEY": "0x…  // optional — a dedicated, funded Base wallet; omit to use the free calls and see prices",
        "MAX_PAYMENT_USDC": "0.25"
      }
    }
  }
}

Tools auto-discover from the live catalog, so new stalls appear with nothing to update. Without a wallet the agent still gets the free calls and sees every price.

§01 · prices

What each call costs.

Flat USDC per call, the same on every chain and every client. Free to try means a small allowance per IP per day with no wallet at all (GET /api/v1/free-trial shows what you have left); everything else is paid from the first call.

One dollar of USDC buys 200 Base token-safety checks, 125 token reports (safety + market data), 333 web pages extracted to text or 250 screenshots.

On-chain checks & feeds

EndpointWhat it doesPriceFree to try
/v1/base/address-safety Address Safety $0.005 yes
/v1/base/deployer-check Deployer Reputation $0.008 —
/v1/base/dossier Token Dossier $0.1 —
/v1/base/liquidity-history Liquidity History $0.005 yes
/v1/base/liquidity-pulls Liquidity Pulls $0.003 yes
/v1/base/new-pairs New Pairs $0.003 yes
/v1/base/token-report Token Report $0.008 yes
/v1/base/tx-preflight Transaction Preflight $0.008 yes
/v1/base/whale-swaps Whale Swaps $0.005 yes
/v1/bsc/address-safety Address Safety (BNB Smart Chain (BSC)) $0.005 yes
/v1/bsc/token-report Token Report (BNB Smart Chain (BSC)) $0.008 yes
/v1/bsc/token-safety Token Safety (BNB Smart Chain (BSC)) $0.005 yes
/v1/ethereum/address-safety Address Safety (Ethereum) $0.005 yes
/v1/ethereum/deployer-check Deployer Reputation (Ethereum) $0.008 —
/v1/ethereum/token-report Token Report (Ethereum) $0.008 yes
/v1/ethereum/token-safety Token Safety (Ethereum) $0.005 yes
/v1/solana/token-safety Token Safety (Solana) $0.005 yes
/v1/token-safety Token Safety $0.005 yes

Markets & finance

EndpointWhat it doesPriceFree to try
/v1/defi-yields DeFi Yields $0.005 yes
/v1/prediction-markets Prediction Markets $0.005 yes
/v1/quant Quant $0.003 yes

Web tools

EndpointWhat it doesPriceFree to try
/v1/headers-check Headers Check $0.003 —
/v1/link-preview Link Preview $0.003 —
/v1/robots-check Robots Check $0.003 —
/v1/screenshot Screenshot $0.004 —
/v1/web-extract Web Extract $0.003 —
/v1/web-search Web Search $0.008 —

SEO & search

EndpointWhat it doesPriceFree to try
/v1/backlinks Backlinks $0.1 —
/v1/keyword-ideas Keyword Ideas $0.05 —
/v1/keyword-volume Keyword Volume $0.15 —
/v1/ranked-keywords Ranked Keywords $0.05 —
/v1/seo-audit SEO/GEO Audit $0.02 / page —
/v1/serp SERP $0.02 —

LLM

EndpointWhat it doesPriceFree to try
/v1/chat/completions LLM Router per-token + 3% markup —

Request bodies and full descriptions: catalog and the OpenAPI spec.

§02 · fund a wallet

A few dollars, five minutes.

  1. Create a new, dedicated wallet — not your main one. Its key will sit in a config file, and its balance is the hard ceiling on what an agent can spend.
  2. Send it a few dollars of USDC on Base. No ETH needed: you only sign, the facilitator pays the gas.
  3. Give the key to your client: WALLET_PRIVATE_KEY for the MCP server, TRUE402_PAYER_PRIVATE_KEY for the swap guards.
  4. Keep the per-call cap: the MCP server refuses any 402 above MAX_PAYMENT_USDC ($0.25 by default).

Step by step, with where to get USDC on Base: how to fund a Base wallet for x402.

swap guards
# OpenClaw or Hermes swap guard: a dedicated wallet, read from this one variable only
export TRUE402_PAYER_PRIVATE_KEY=0x…
§03 · discover

Check what’s free — free.

Browsing the catalog, the spec and your allowance never costs anything. Only the call itself is gated.

bash
# Your free daily allowance (per IP) and which stalls it covers. Reading it costs nothing.
curl -s https://true402.dev/api/v1/free-trial
§04 · under the hood

Ask, get a price, sign, resend.

A gated endpoint answers 402 Payment Required with everything needed to pay: the exact amount, the USDC asset, where to pay, and the EIP-712 domain to sign under.

402 response
# Token safety on Base: real buy/sell honeypot simulation. $0.005 once the free calls are used.
curl -i -X POST https://true402.dev/api/v1/token-safety \
  -H 'content-type: application/json' \
  -d '{"token":"0x4200000000000000000000000000000000000006"}'

HTTP/1.1 402 Payment Required
{
  "x402Version": 2,
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "amount": "5000",                      // atomic USDC (6 decimals) = $0.005
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0xFe25…A9C4",
    "maxTimeoutSeconds": 300,
    "extra": { "name": "USD Coin", "version": "2" }   // EIP-712 domain — sign EXACTLY this
  }]
}

Your agent signs a USDC EIP-3009 authorization that matches the 402, base64-encodes it, and resends as PAYMENT-SIGNATURE:

decoded PAYMENT-SIGNATURE
# PAYMENT-SIGNATURE (x402 v2) is base64 of this — your agent signs the USDC authorization
# off-chain. No gas, no on-chain call by you: the facilitator submits it.
{
  "x402Version": 2,
  "accepted": { /* the accepts[] entry you chose, copied from the 402 */ },
  "payload": {
    "signature": "0x…",
    "authorization": {
      "from": "0xYourWallet",
      "to":   "0xFe25…A9C4",     // payTo from the 402
      "value": "5000",           // the amount from the 402 — EXACTLY, never more
      "validAfter": "…", "validBefore": "…", "nonce": "0x…"
    }
  }
}

In code, Coinbase’s official client does all of it — 402, sign, retry — in one call:

Node — @x402/fetch
// npm i @x402/fetch @x402/core @x402/evm viem — Coinbase's official x402 client
import { x402Client } from '@x402/core/client';
import { wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm';
import { privateKeyToAccount } from 'viem/accounts';

const signer = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY);  // a dedicated, funded Base wallet
const client = new x402Client().register('eip155:8453', new ExactEvmScheme(signer));
const pay = wrapFetchWithPayment(fetch, client);

const res = await pay('https://true402.dev/api/v1/token-safety', {
  method: 'POST', headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ token: '0x4200000000000000000000000000000000000006' }),
});
console.log(await res.json());

The service runs, and the answer is released once the payment settles, with a PAYMENT-RESPONSE receipt. If settlement is refused you get 402 and are not charged.

200 OK
curl -X POST https://true402.dev/api/v1/token-safety \
  -H 'content-type: application/json' \
  -H "PAYMENT-SIGNATURE: <base64 payload>" \
  -d '{"token":"0x4200000000000000000000000000000000000006"}'

HTTP/1.1 200 OK
PAYMENT-RESPONSE: <base64 { success, transaction, network, payer }>
{ "token": "0x4200…0006", "chain": "base", "score": …, "risk": "…", "flags": [ … ],
  "honeypot": { … }, "liquidity": { … }, "ownership": "…", "mintable": … }
§05 · troubleshooting

When a payment is refused.

A refused payment is never charged. The 402 body says why, in error.message — these are the messages you will see:

The answer saysWhyFix
Amount mismatch: this resource costs exactly …You signed more (or less) than the quote. Overpayment is refused, never credited: settlement submits the signed value and there is no refund path.Sign a NEW authorization for exactly accepts[0].amount.
Network mismatch: expected eip155:8453 …The payment names a network other than the one quoted — usually the v1 alias "base" instead of the CAIP-2 id.Use the network string from the 402 verbatim (eip155:8453 for Base).
Unsupported x402 version: 1An x402 v1 client. We speak v2 only, as the spec now requires.Upgrade the client (e.g. @x402/fetch 2.x), or use one of ours below.
Recipient mismatch: expected 0x…a9c4 …The authorization pays someone other than the payTo in the 402.Sign to accepts[0].payTo, copied verbatim.
Payment expired: validBefore is …The authorization window closed before it reached us.Sign a fresh one and send it promptly; maxTimeoutSeconds is the window.
This payment authorization has already been usedThe same signed header was sent twice. Each authorization buys exactly one answer.Sign a new authorization (new nonce) for every call.
Payment cannot be settled: …The signature is invalid, the wallet has too little USDC, or that nonce was already used.Fund the wallet, then sign a new authorization (new nonce).
402 again right after free calls workedToday’s free allowance for your IP is used up.Add a funded wallet, or wait for the reset at 00:00 UTC (GET /api/v1/free-trial shows what is left).
429 with Retry-AfterToo many failed paid attempts from one wallet or IP in 10 minutes. Failed attempts are never charged, so this is the brake.Fix the cause above, then retry after the stated delay.
§06 · questions

Before you pay.

Am I charged if the call fails?

No. A paid call settles only when the service answers 2xx. Any error, timeout or refusal leaves the authorization unspent, and a settlement that is refused on-chain withholds the answer instead of charging you.

Do I need ETH for gas?

No. You sign a USDC authorization off-chain; the facilitator submits it and pays the gas. The wallet needs USDC on Base and nothing else.

How do I bound what an agent can spend?

Two limits. A per-call ceiling in the client (MAX_PAYMENT_USDC in the MCP server, $0.25 by default; the swap guards cap each check at $0.02 and 50 paid checks a day) refuses to sign a 402 that asks for more. The total ceiling is simply the wallet balance — which is why the key should be a dedicated wallet holding a few dollars, not your main one.

Do I get a receipt?

Every paid answer carries a PAYMENT-RESPONSE header with the settlement transaction hash on Base, so the payment is verifiable on-chain by anyone.

What does true402 learn about me?

What any web server sees — your IP address and the request — and, for a paid call, the paying wallet address, since a payment on Base is public by nature. No account, no email, no API key. Use a dedicated wallet if you do not want your main address linked to your calls.

Can I pay with something other than USDC on Base?

USDC on Solana is also accepted: the 402 lists it as a second option where available. Card or fiat payments are not offered.

§07 · point your agent

Machine discovery.

Agents find true402 without reading this page:

Already shopping in Coinbase’s x402 Bazaar or on Agentic.Market? Twenty-one of the stalls — the on-chain checks, the API recommender, screenshot, web extract, SEO audit, prediction markets, DeFi yields, quant and more — are listed there too, resold through FiatDock at the same prices and paid straight to the true402 wallet. Listings and request bodies. Calling true402.dev directly adds the remaining stalls and the free daily allowance.