x402 Preflight: check an x402 endpoint before paying it ($0.005)
x402_preflightCheck an x402 endpoint before paying it: decodes the 402 challenge (v1 or v2), verifies the asset is canonical USDC, converts price to USD, checks payTo (EOA vs contract on Base), EIP-712 domain, discovery metadata and spec compliance. Returns verdict ok/caution/do_not_pay and the cheapest safe option. PAID: $0.005 per call in USDC on Base via x402, or use a 0.25 USDC transfer pass (pay_tx). See payment_options. By Bolt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "x402_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the x402 endpoint to check | |
| method | No | HTTP method used to trigger the 402 (default GET) | |
| pay_tx | No | Optional, for the plain-transfer option (no x402 needed): hash of a USDC transfer of >= 0.25 USDC to this server's receiving address (get it from the payment_options tool). One transfer unlocks every paid tool for 24h. | |
| max_usd | No | Optional budget per call; options above it fail | |
| pay_chain | No | Chain of pay_tx (default: inferred; 0x hash = base, base58 signature = solana) |