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.
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.
# 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:
{
"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.
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.
| Endpoint | What it does | Price | Free 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 |
| Endpoint | What it does | Price | Free to try |
|---|---|---|---|
/v1/defi-yields |
DeFi Yields | $0.005 | yes |
/v1/prediction-markets |
Prediction Markets | $0.005 | yes |
/v1/quant |
Quant | $0.003 | yes |
| Endpoint | What it does | Price | Free 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 | — |
| Endpoint | What it does | Price | Free 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 | — |
| Endpoint | What it does | Price | Free to try |
|---|---|---|---|
/v1/chat/completions |
LLM Router | per-token + 3% markup | — |
Request bodies and full descriptions: catalog and the OpenAPI spec.
WALLET_PRIVATE_KEY for the MCP server, TRUE402_PAYER_PRIVATE_KEY for the swap guards.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.
# OpenClaw or Hermes swap guard: a dedicated wallet, read from this one variable only
export TRUE402_PAYER_PRIVATE_KEY=0x…
Browsing the catalog, the spec and your allowance never costs anything. Only the call itself is gated.
# Your free daily allowance (per IP) and which stalls it covers. Reading it costs nothing.
curl -s https://true402.dev/api/v1/free-trial
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.
# 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:
# 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:
// 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.
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": … }
A refused payment is never charged. The 402 body says why, in error.message — these are the messages you will see:
| The answer says | Why | Fix |
|---|---|---|
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: 1 | An 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 used | The 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 worked | Today’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-After | Too 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. |
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.
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.
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.
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 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.
USDC on Solana is also accepted: the 402 lists it as a second option where available. Card or fiat payments are not offered.
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.