Payment policy check
wever_payment-policy-checkAgent preflight: check one x402 payment challenge against your spending policy before you pay. Input challenge (the 402 response body, one payment requirements object or the base64 PAYMENT-REQUIRED header, version 1 or 2) and policy (per_call_cap and daily_cap in whole units of the asset, optional spent_today, allowed_networks, allowed_assets, optional recipient_allowlist and asset_decimals). The signed report gives a pay or refuse verdict, the reason for every failed rule (challenge schema, network, asset, recipient, per-call cap, daily cap and a stated authorization window), and the amount, asset, network, recipient and expiry restated from the challenge itself. It evaluates the challenge only and never pays. POST /api/payment-policy-check. Reads only the material in the call: no page fetch, no registry or chain lookup, no counterparty contact, and no payment signed, submitted or moved. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-preflight-contract. Human page: https://weverlabs.com/preflight/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional name for the payment, recorded in the report. | |
| policy | Yes | ||
| challenge | Yes | The x402 payment challenge as received: the 402 response body (x402Version, resource and accepts), one payment requirements object from its accepts list, or the base64 PAYMENT-REQUIRED header value. Version 1 and version 2 challenges are read. |