Redeem a provision directly on any pool
/dex/pools/{poolNft}/redeemapi_keyCloses one of this wallet's provisions now. Open on every pool, whatever its genesis. Fees the vault owes the provision are lost with its box, so a provision owed any needs acknowledgeUnclaimedFees; claim them first to keep them.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolDirectRedeemRequest · application/jsonprovisionBoxIdstringrequiredacknowledgeUnclaimedFeesbooleanRequired when the vault owes the provision fees, which the redemption destroys.
expectedPoolBoxIdstring
Responses
200The transaction sentLDPoolDirectResult▶
A direct spend sent. For a swap amountX is what was sold and amountY what came back; for a deposit and a redemption, X and Y in pool order.
outcomestringrequiredtxIdstringrequiredpoolNFTstringrequiredkindstringrequiredone ofSWAPDEPOSITREDEEMamountXstringrequiredamountYstringrequiredsharesstringownerNFTstringprovisionBoxIdstring
400The request is malformed, names a token the pool does not hold, or leaves out an acknowledgement it needs.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
409The pool or provision moved since the quote, 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 at its depth or above the floor, or the wallet cannot cover it.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node or wallet unavailable. Retry.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description