x402 payment preflight ($0.005 USDC on Base via x402)
x402_preflightPaid $0.005 per call (x402, USDC on Base). Before your agent pays an unknown x402 endpoint: fetch its 402 unpaid and check the asset is canonical Circle USDC for that network, price/scheme/timeout sanity, and payTo (contract or EOA, USDC balance on Base). Returns verdict ok/caution/block with per-option flags.
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 | https URL of the x402 resource to check | |
| method | No | HTTP method, default GET |