hookr_build_fill · Build a limit order fill
read-onlyBuilds the unsigned call that fills one open limit order from a wallet, simulated from it, with the gas the book asks for; the wallet pays the gas and is credited the order's bounty on the book. It returns ok with the call and, when the wallet has bounties to claim, the call that claims them, or refused or unknown with the reason and no call.
Input schema
{
"type": "object",
"properties": {
"order": {
"type": "string",
"pattern": "^[1-9][0-9]{0,19}$",
"description": "The order's id, as hookr_open_orders lists it."
},
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that fills the order, pays the gas and is credited the bounty."
}
},
"required": [
"order",
"wallet"
],
"additionalProperties": false
}