Build a limit order fill
hookr_build_fillBuilds 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.
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": {
"order": "<order>",
"wallet": "<wallet>"
},
"name": "hookr_build_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | The order's id, as hookr_open_orders lists it. | |
| wallet | Yes | The wallet that fills the order, pays the gas and is credited the bounty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Unsigned calls, in the order to send them. | |
| order | No | ||
| bounty | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| gasCost | No | ||
| claimBounties | No | ||
| bountiesToClaim | No | ||
| bountyCoversGas | No |