Quote a redeem order on any pool
/dex/pools/{poolNft}/orders/redeem/checkWhat closing a provision through an order returns now, and the fees the placement would claim from the vault first. A fill forfeits anything left unclaimed.
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 quoteLDPoolRedeemQuote▶
poolNFTstringrequiredprovisionBoxIdstringrequiredsharesstringrequiredamountXstringrequiredThe provision's share of reserve X; nanoERG for an ERG/token pool
amountYstringrequiredclaimableXstringrequiredClaimed from the vault by the placement. A fill forfeits anything unclaimed.
claimableYstringrequiredprovisionValuestringrequiredergReturnedstringrequirednanoERG back beside the reserves, net of the fee where it comes out of them
withinMinSupplybooleanrequiredFalse when the pool refuses to close this provision
executorFeestringrequiredmaxMinerFeestringrequiredtotalErgRequiredstringrequirednetworkFeestringrequired
400The request is malformed, or names a token the pool does not hold.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
503The pool index is still building, or the node could not be read. 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