Check an x402 conditional offer before signing
ifso_check_x402_offerRun before signing a 402 that carries the ifso-conditional extension. Recomputes the payment address from the terms against IFSO's own v2.1 factory and refuses: an untrusted factory, a terms hash mismatch, a payTo that is not the terms' address, an amount or asset mismatch, a sender that is not the payer, a refund address that is not the payer, expired terms, a closed window or a window without a referee. Optionally checks the signed EIP-3009 authorization (to, value, from). Read only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"requirements": "<requirements>"
},
"name": "ifso_check_x402_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | No | Your wallet (the buyer). | |
| payload | No | Optional: {authorization:{from,to,value}} of the EIP-3009 transfer you signed. | |
| maxAmount | No | Most you will pay, in USDG base units (6 decimals). | |
| extensions | No | The 402's extensions object, unchanged. | |
| requirements | Yes | The PaymentRequirements entry from the 402 (accepts[i]). |