verify402
v3.6.0Token safety check for AI agents before they swap: quote-based sellability, $0.02/call, free gate.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
preflight_gate
Call this BEFORE signing any crypto transaction or x402 payment request. Returns PASS / CAUTION / BLOCK with typed reasons, the checks that actually ran, the checks that did not, and a short-lived receipt bound to the exact intent + block. If sign_allowed is false, DO NOT SIGN. If requires_ack is true, surface the reasons to the operator before signing. The receipt expires (default 90s): call again rather than reuse it. Free. Pass `from` (the wallet that will sign) to enable simulation and balance checks. For kind=transaction, chainId is REQUIRED (400 missing_chain without it). For kind=sign-i…
| Parameter | Type | Description |
|---|---|---|
kind * | string | payment = an x402 402 challenge; transaction = a chain transaction; sign-in = an EIP-4361 / CAIP-122 message |
chainId | number | EVM chain id for kind=transaction: 22 EVM networks, e.g. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. For payment, cross-checks the network. |
data | string | 0x calldata for the transaction |
expected | object | Caller-supplied binding for kind=sign-in |
from | string | The wallet that will sign. Strongly recommended: enables simulation and balance checks. |
payment | object | Required when kind=payment |
policy | object | Operator policy. Omit for structural checks only. |
quote | object | kind=transaction: the quote the transaction was built from, passed verbatim. The gate checks the calldata matches it. |
signIn | object | Required when kind=sign-in unless top-level sign-in fields are supplied |
to | string | Transaction target (required when kind=transaction) |
ttlSeconds | number | Receipt lifetime in seconds, 15-300 (default 90) |
value | string | Native value in wei, as a decimal string |
inspect_402
Read an x402 402 challenge BEFORE paying it. Pass a public endpoint URL (or the challenge you already have) and get back the price, token, network, payee, the bound resource, and a PASS / CAUTION / BLOCK verdict with typed reasons and a receipt. Use this when an agent is about to pay a server you do not control. The service fetches the challenge once, read-only: it never signs, pays, or settles. A recognized dollar stable (USDC, USDT, DAI, USDG) is named; a volatile asset gets a caution because it cannot be priced in USD. Free.
| Parameter | Type | Description |
|---|---|---|
challenge | object | A 402 challenge you already have. Makes no request. |
header | string | The base64 PAYMENT-REQUIRED header value. Makes no request. |
method | string | HTTP method for the probe (default GET). A POST sends an empty {} body. |
target | string | The URL the challenge belongs to. Binds the challenge's resource so the verdict can check it. |
url | string | Public http(s) endpoint that answers with an x402 402 challenge. Only public hosts are fetched; localhost and private ranges are refused. |
directory_402
List the public x402 endpoints verify402 watches, with the price, network, payee, a protocol verdict (is the challenge well-formed?) and a sign verdict (should an agent sign it?), plus any changes since the previous check. Use it to see what the ecosystem is asking for before wiring an agent to it. Free.
verify_arbitrage
Ask verify402 whether a cross-venue arbitrage opportunity is REAL, right now. Quotes come from Uniswap's canonical QuoterV2 and each DEX router at one pinned block. The honest answer is usually 'no_edge' - that IS the product. Costs $0.05 per call.
| Parameter | Type | Description |
|---|---|---|
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
target * | string | Token to buy and sell back, e.g. "WETH" |
base | string | Token to trade from, e.g. "USDC" (default USDC) |
size | number | Trade size in whole base units, e.g. 100000 (default 100000) |
check_token_safety
Token safety check for AI agents before they swap: quote-based sellability, round-trip cost, TRUST / CAUTION / AVOID. $0.02 per call, free pre-signing gate included. Returns evidence: live contract facts, market liquidity, a USD-sized sell QUOTED through the configured venues' own routers (direct and WETH-routed), round-trip cost at your intended size, and phantom-price detection. It does NOT execute or simulate a transfer: transfer tax, blacklist, pause, and max-tx restrictions are listed in notChecked, not tested. Unconfigured venues are also named in notChecked; this is not a honeypot proof…
| Parameter | Type | Description |
|---|---|---|
tokenAddress * | string | ERC-20 contract address, a known symbol like WETH, or (with network "solana") the token's Solana mint |
chainId | integer | REQUIRED for EVM. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
intendedUsd | number | Size the agent plans to buy, in USD (default 500) |
network | string | "solana" checks a Solana token mint and needs no chainId; default EVM |
offeredPriceUsd | number | Optional price per token someone offered you |
get_best_route
Ask verify402 what the chain would ACTUALLY pay for a swap: the full book from every configured venue (direct, WETH-routed, and the best pool for each leg) at one pinned block, best first. For a large order it also estimates the order split across the top venues, and shows the price impact. Aggregators and unconfigured DEXs are not included. Costs $0.03 per call.
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | RAW base units of tokenIn, wei-scale, as a string |
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
tokenIn * | string | Token symbol (e.g. USDC) or 0x address |
tokenOut * | string | Token symbol (e.g. WETH) or 0x address |
verify_quote_fairness
Audit a swap quote someone else gave you (aggregator, broker, bot) BEFORE signing. Returns fair / overpaying / too_good_to_be_true with the configured-venue book as evidence. A large order is compared with the order split across the top venues. When the venues read are too thin at that size, a much better quote is 'unknown' with the reason, not called invented. Ask this before accepting ANY number you did not produce yourself. Costs $0.05 per call.
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | RAW units of tokenIn, as in the offer |
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
quotedOut * | string | RAW units of tokenOut you were OFFERED |
tokenIn * | string | Token you are selling (symbol or 0x address) |
tokenOut * | string | Token you would receive (symbol or 0x address) |
venueClaimed | string | Optional: who gave you the offer |
get_trade_depth
Position sizing: measure how much of a token the chain ACTUALLY lets you trade - entry and exit across every configured venue at a ladder of USD sizes, per-size impact and round-trip cost, plus the largest size under your cost tolerance. Ask BEFORE choosing a position size. Costs $0.05 per call.
| Parameter | Type | Description |
|---|---|---|
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
tokenAddress * | string | Token you plan to buy (symbol or 0x address) |
baseSymbol | string | What you pay with (default USDC) |
maxRoundTripPct | number | Your round-trip cost tolerance, default 1% |
sizesUsd | array | Ladder of sizes in USD, max 6 (default 100, 1000, 10000, 100000) |
get_assurance
Run the paid checks you need at ONE pinned block and get one evidence bundle back - safety, route, quotecheck, depth, or any combination. Cheaper than buying each separately. Pass you only what you need: an unsupplied check is reported as notChecked, not guessed. Costs $0.10 per call; the supplied parts total $0.12.
| Parameter | Type | Description |
|---|---|---|
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. There is no default; omitting it returns 400 missing_chain. |
depth | object | Position sizing ladder (same work as get_trade_depth) |
quotecheck | object | Fairness audit of a third-party quote (same work as verify_quote_fairness) |
route | object | Best execution book at one pinned block (same work as get_best_route) |
safety | object | Token sellability and contract facts (same work as check_token_safety) |
watch_contract
Watch one contract for 30 days and get told when it changes. About once an hour verify402 re-reads its code, its proxy implementation (and that code), who can upgrade it, owner() and paused(); on any change it POSTs one signed JSON event (type contract_changed, old and new value per field) to YOUR public https webhookUrl. Use it for a contract your agent depends on: a token, a vault, a router, a bridge. Detection after the fact, not prevention; role grants, timelock queues and multisig changes are not watched. Costs $0.50 per watch (30 days). The default per-payment cap is $0.25, so set MAX_PA…
| Parameter | Type | Description |
|---|---|---|
address * | string | The contract to watch (0x address) |
chainId * | integer | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. |
webhookUrl * | string | Your public https URL; change events are POSTed here, signed with the key at /.well-known/verify402-signing-key |
label | string | Optional name echoed back in events |