Quote a direct deposit on any pool
post
/dex/pools/{poolNft}/deposit/checkThe most shares the offered amounts buy now, what the pool takes for them and what stays in the wallet.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolDepositRequest · application/jsonamountXstringrequiredamountYstringrequiredexecutorFeestringnanoERG 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 quoteLDPoolDirectDepositQuote▶
poolNFTstringrequiredsharesstringrequiredtakenXstringrequiredtakenYstringrequiredexcessXstringrequiredexcessYstringrequiredshareOfSupplynumber · doublerequiredprovisionBoxValuestringrequirednanoERG in the new provision box, returned on redemption
totalErgRequiredstringrequirednanoERG leaving the wallet, X itself included on an ERG/token pool
networkFeestringrequiredpoolBoxIdstringrequired
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