Deposit directly on any pool
/dex/pools/{poolNft}/depositapi_keyOpens a provision now for the most shares the offer buys, refused below minShares. The owner NFT arrives in this wallet in the same transaction. Gated like a deposit order.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolDirectDepositRequest · application/jsonamountXstringrequirednanoERG on an ERG/token pool
amountYstringrequiredminSharesstringrequiredRefused when the pool would issue fewer. Must be positive.
expectedPoolBoxIdstringacknowledgeUnverifiedboolean
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