hookr_build_cancel_order · Build a limit order cancel
read-onlyBuilds 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.
Input schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that placed the order; the refund goes to it."
},
"orderId": {
"type": "string",
"pattern": "^[1-9][0-9]{0,19}$",
"description": "The order's id, from hookr_open_orders."
}
},
"required": [
"wallet",
"orderId"
],
"additionalProperties": false
}