Settle a position
/forwards/positions/{boxId}/settleapi_keyPay both sides of a position whose window has been recorded, recording the current epoch in the same transaction when it is due. The network fee comes out of the position; this wallet keeps the rewards, 5 LIT, or 10 LIT when the settlement also records. No body.
Path parameters
boxIdstringrequiredPosition box id, as listed by
GET /forwards/positions.
Responses
200Result of the settlementDFSettleResult▶
txIdstringrequiredoutcomestringrequiredone ofacceptedrejecteduncertainrefundbooleanrequiredowedLongstringrequiredowedShortstringrequiredrewardLitstringrequired
403Missing or wrong api_keyApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No unspent position has that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409An unconfirmed transaction already spends the position, or the accumulator's unconfirmed spends are contested or record an epoch that is over. Retry after the next block.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
422The window's last epoch is not recorded yet, or no accumulator is deployed.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node, wallet or transaction engine unavailable, or the request ran out of time. The message says whether anything was sent. When it says the outcome is unknown, check this wallet's offers and positions before retrying.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description