Quote a direct redemption on any pool
/dex/pools/{poolNft}/redeem/checkWhat closing the provision now returns, and the fees the vault owes it that a direct redemption loses.
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 quoteLDPoolDirectRedeemQuote▶
poolNFTstringrequiredprovisionBoxIdstringrequiredsharesstringrequiredamountXstringrequiredamountYstringrequiredergReturnedstringrequiredThe provision box's ERG, which comes back beside the reserves
unclaimedXstringrequiredFees the vault owes the provision now, lost when its box is spent
unclaimedYstringrequiredwithinMinSupplybooleanrequirednetworkFeestringrequiredpoolBoxIdstringrequired
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
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
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