Check up to 10 x402 endpoints before paying ($0.005 via x402)
x402_preflight_batchPaid ($0.005 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): the pre-payment check for up to 10 x402 endpoints at once. Per endpoint go, caution or no_go, the recommended payment option and why, plus totals. For marketplaces and agents that weigh several services. Never pays the endpoints. Same as GET /api/v1/preflight/batch. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
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": {
"urls": "<urls>"
},
"name": "x402_preflight_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | The x402 endpoints to check (public http(s) URLs), at most 10 | |
| client | No | Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first. | |
| max_usd | No | Your budget per call in USD, e.g. 0.05 | |
| network | No | CAIP-2 network you want to pay on, e.g. eip155:8453 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| counts | No | How many go, caution, no_go and unknown | |
| accepts | No | Only on an unpaid call: the x402 payment options | |
| receipt | No | Signed receipt (EIP-191) binding the answer to your arguments | |
| results | No | One preflight per endpoint |