Build a limit order cancel
hookr_build_cancel_orderBuilds the cancel of one of a wallet's open limit orders as an unsigned call simulated from that wallet, which refunds the order's input and tip to it; only the wallet that placed an order can cancel it, an expired order included.
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": {
"wallet": "<wallet>",
"orderId": "<orderId>"
},
"name": "hookr_build_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | The wallet that placed the order; the refund goes to it. | |
| orderId | Yes | The order's id, from hookr_open_orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Unsigned calls, in the order to send them. | |
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| orderId | No |