Fill an order
/sigmafi/zc/orders/{boxId}/fillapi_keyLend from this wallet. The fill mints the bond asset, the order's box id: one unit to this wallet, two locked in the bond. A priced order is quoted at the most it asks over the next 3 blocks. Refused under the order's fill guard, or when the bond would start under its own ratio unless allowLiquidatable.
Path parameters
boxIdstringrequiredA ZC box id.
Request body
ZcFillRequest · application/jsonmaturityinteger · int64Window orders only. Default the earliest grid height in the window, else its shortest.
reserveNanoErgstringThe bond's liquidation fee reserve, at least and by default 50000000.
allowLiquidatableboolean▶
limitsZcLimitsBounds on the rebuilt transaction. For fills, buys, repays, recollateralizations and claims, amounts are in the action's market unit (nanoERG for ERG, fee included; raw units for SigUSD; nanoERG for actions with no market). For posts (orders, offers, asks, lots, fractionalize and wraps),
maxPayis always in nanoERG (box value plus miner fee), since any token capital or collateral is fixed directly by the request body. Outside them the send answers 409.maxPaystringminReceivestring
Responses
200The transaction was sent; `outcome` says whether the node accepted it.ZcResult▶
txIdstringnullableNone while the write is held.
outcomestringThe node's answer.
held: the write reads the box a pending oracle refresh creates, and a miner could reach it before that refresh, so nothing was sent yet. The client tries it again every 30 seconds for 10 minutes, rebuilt and checked againstlimitseach time, and sends it once the refresh confirms.one ofacceptedrejecteduncertainheldreasonstringWhy a write is held.
retriesUntilinteger · int64When a held write stops being tried (ms since the epoch).
boxIdstringnullableThe transaction's first output.
assetIdstringnullableThe bond asset a fill minted.
warningsstring[]
400A malformed field, or terms the contracts refuse.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
403Missing or wrong api_key.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No such box or token, or not this wallet's.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409A pending transaction already spends a box this needs, or the rebuilt transaction is outside `limits`. Re-quote and resend.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
422Valid, but not possible now; the message gives the reason the check lists in `refusals`.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description