Check an x402 endpoint before paying it ($0.001 via x402)
x402_preflightPaid ($0.001 USDC via x402 on Base or Solana): call this before your agent pays an x402 endpoint. Returns go, caution or no_go, the recommended payment option, and why: payment would fail, over your budget (max_usd), price above what is advertised, not HTTPS, unknown token, its 30-day track record. Never pays the endpoint. Same as GET /api/v1/preflight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid | |
| method | No | HTTP method of the paid route (default: GET, then POST) | |
| 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 |