Place a deposit order on any pool
/dex/pools/{poolNft}/orders/depositapi_keyLocks both sides and a provision box in an order that fills for at least minShares. The fill mints this wallet a provision NFT. Refused on a pool that can be drained, and on an unverified pool needs acknowledgeUnverified.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolDepositExecuteRequest · application/jsonamountXstringrequiredamountYstringrequiredminSharesstringrequiredFewest shares the order accepts
executorFeestringnanoERG the filler keeps. Omitted, from lithosdex.orders.
maxMinerFeestringMost of the executor fee a broadcast fill may pay as a network fee. Below executorFee.
acknowledgeUnverifiedbooleanMust be true to trade with a pool the verified list does not name
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, or trades with an unverified pool without acknowledgeUnverified.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