Place a redeem order on any pool
/dex/pools/{poolNft}/orders/redeemapi_keyMoves the provision's NFT into a redeem order, in the same transaction claiming what the vault owes the provision. Needs the NFT in this wallet. Open on every pool, whatever its genesis, so liquidity can always leave.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolRedeemRequest · application/jsonprovisionBoxIdstringrequiredThe live provision box to close
executorFeestringnanoERG the filler keeps. Omitted, from lithosdex.orders.
maxMinerFeestringMost of the executor fee a broadcast fill may pay as a network fee. Below executorFee.
Responses
200The placementLDPoolOrderPlaced▶
outcomestringrequiredone ofacceptedrejecteduncertaintxIdstringrequiredpoolNFTstringrequiredkindstringrequiredone ofSWAPDEPOSITREDEEMorderBoxIdstringrequiredclaimedXstringA redeem placement: what it claimed from the vault
claimedYstringprovisionBoxIdstringA redeem placement that claimed: the provision's successor
400The request is malformed, names a token the pool does not hold.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
403Missing or wrong api_keyApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No LithosDex pool with that NFT, or no live provision with that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409A box the placement spends moved, or another LithosDex mutation is running. Re-quote and resend.LDStateChangedResponse▶
errorintegerrequiredreasonstringrequireddetailstringrequiredWhat moved, and what it moved to
poolBoxIdstringCurrent pool box id
vaultBoxIdstringCurrent vault box id
provisionBoxIdstringCurrent provision box id
422The pool can be drained, the pool cannot fill this, or the wallet cannot cover it.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503The pool index is still building, the pool's genesis could not be read, or the node or wallet did not answer. Retry.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