Verify an x402 endpoint before paying (paid $0.002)
x402_preflightAvoid paying invalid x402 endpoints by verifying pre-payment. Checks 402 challenge, price and network match, TLS, host reachability, and OpenAPI.
Instructions
PAID $0.002 (x402, USDC on Base). Verify another x402 endpoint BEFORE paying it: does an unpaid call return a valid x402 v2 402 challenge? do the quoted amount/asset/network/payTo match the site's /.well-known/x402? is TLS valid, host reachable, openapi present? Returns pass/fail + per-check reasons + the parsed price you would pay. Args: url. Without payment returns the x402 challenge; pass x_payment to settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint URL to verify, e.g. https://example.com/v1/thing. | |
| x_payment | No | x402 payment payload (base64) for this PAID check. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. |