Prepare an IFSO payment (unsigned)
ifso_prepare_paymentTurns a command like "/ifso 0x... 20 on 2026-12-01" into a plain preview and the UNSIGNED data to create that if-so payment from the sender's own wallet: two transactions (USDG approve, then create) or one gasless authorization to sign. This server never signs, never holds a key and never sends anything; the sender reviews and signs in their own wallet. Same checks as the site's build step.
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": {
"text": "<text>",
"sender": "<sender>"
},
"name": "ifso_prepare_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The command, e.g. "/ifso 0x... 20 on 2026-12-01" or "/challenge 0x... 10 if nvda closes above 200 by friday". See ifso_list_conditions. | |
| sender | Yes | The wallet that sends the USDG and signs. | |
| linkKey | No | For a claim link: the address derived from the link secret. Keep the secret yourself; never send it. | |
| referee | No | Referee wallet for a referee condition, when not typed in the command. | |
| recipient | No | Recipient, when the command says link and you want a fixed recipient instead. | |
| altRefundTo | No | Second refund address, used if the sender cannot receive USDG. | |
| cancellable | No | Let the sender cancel before anything happens (default false). | |
| tzOffsetMin | No | The person's UTC offset in minutes for dates (e.g. 240 for UTC+4). Stock deadlines always use New York time. |