x402 preflight: ALLOW / WARN / DENY before an agent pays an x402 endpoint
x402_preflightUse when an agent is about to pay an unknown x402 endpoint and needs a cheap safety gate. Input: url (https x402 resource), method, optional max_price_usd. Output: JSON verdict ALLOW/WARN/DENY with reasons: live quote now, price vs similar routes and your budget, payTo on the OFAC list, price change vs our last measurement, our 7-day uptime/p95, ERC-8004 registration. Never pays; cached 60 s. Example: ?url=https://1gateway.dev/v1/fx/rates&max_price_usd=0.01 Price: $0.002 USDC (Base or Solana) via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https URL of the x402 resource you are about to pay | |
| method | No | HTTP method of the resource | |
| max_price_usd | No | Your budget per call in USD; a higher quote gives DENY |