Pay Safe: check before paying an x402 service (free)
preflight_x402_paymentFREE. Run this before paying any x402 (HTTP 402) service. Pass the service URL and the PAYMENT-REQUIRED value it sent you (or price_usd and pay_to). Returns GO / CAUTION / STOP with reasons: is the service working, is the price fair (vs its public listing, what our monitor saw, and similar services), is the wallet it asks you to pay safe and the one it normally uses?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The service you're about to pay (optional when payment_required names it) | |
| method | No | HTTP method the service uses | GET |
| pay_to | No | Wallet you're asked to pay, if you don't pass payment_required | |
| price_usd | No | Price asked, if you don't pass payment_required | |
| max_price_usd | No | Optional: STOP when the price is above this | |
| payment_required | No | The PAYMENT-REQUIRED header value the service sent (base64), or its decoded JSON / 402 body |