Check an x402 payment before paying (free)
x402_pay_guardFree. Use right before paying an x402 seller: screens the payTo wallet against the OFAC list, checks that payTo is a wallet this seller lists in the x402 Bazaar or Circle catalogue (catches a swapped or injected payTo), looks up the seller's payer history, age and uptime, and checks the amount against the seller's listed price and your budget. Returns allow, review or deny with reasons and a signed verdict. Input: url of the resource, pay_to from its 402, optional amount_usd, max_usd, network, mode (strict: deny instead of review on a wallet mismatch or missing pay_to).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 resource URL you are about to pay | |
| mode | No | strict: deny on a payTo the seller does not list or a missing pay_to | |
| pay_to | No | payTo address from the 402 challenge | |
| max_usd | No | Your budget per call in USD | |
| network | No | Network from the 402, e.g. eip155:8453 | |
| amount_usd | No | Amount you are about to pay in USD, e.g. 0.05 |