x402 payment check
payment_checkBefore you sign an x402 payment to another service: pass the 402 payment request you received and get one verdict on the whole thing. Checks the price against your limit, that the token is real USDC with the right signing name, the payee address (checksum, poisoning lookalikes, on-chain history), whether the request claims a different site than the one you called, and the site itself (lookalike domains, domain age). One call, one price. Price: $0.01 USDC per call after 25 free calls per day.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _payment | No | x402 v2 payment: base64 PaymentPayload, as you would send in the PAYMENT-SIGNATURE header. Only needed after the free allowance is used. | |
| maxPrice | No | Optional. Your price limit in US dollars, e.g. "0.05". | |
| knownPayees | No | Optional. Payee addresses you have paid before (max 200). GET: comma-separated. | |
| requestedUrl | No | Optional. The URL you called that returned the 402. | |
| paymentRequired | Yes | The PAYMENT-REQUIRED header value (base64) or the 402 JSON body. GET: base64 only. |