prepare_order_action
Prepare (never sign or send) the transaction for a buyer follow-up on an order: approve_delivery (after verifying the deliverable), open_dispute, claim_timeout_refund (seller missed the deadline) or claim_dispute_timeout (escrow v3: the arbitrator did not rule within 14 days). Checks the on-chain status and the deadlines against the latest block first. The transaction must come from the buyer wallet that funded the order. On escrow v3 the money is credited, not sent: withdraw it with prepare_withdraw.
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": {
"orderId": "<orderId>",
"action": "<action>"
},
"name": "prepare_order_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| chainId | No | ||
| orderId | Yes | ||
| escrowVersion | No | Escrow version the order lives in. Default: the current one. Use 2 for orders created before v3. |