Deposit liquidity
/dex/depositapi_keyDeposit a balanced pair directly and mint a provision. Send maxAmountX / maxAmountY from the quote to cap what it costs if the pool moves. Keep the returned ownerNFT — it is what owns the provision. POST /dex/orders/deposit places a deposit as an order.
Request body
LDDepositExecuteRequest · application/jsonsharesstringrequiredLP shares to unlock, as returned by the quote. Decimal string.
maxAmountXstringMost you will pay on the ERG side. Decimal string.
maxAmountYstringMost you will pay on the token side. Decimal string.
expectedPoolBoxIdstringThe pool box this was quoted against
Responses
200Result of the deposit transactionLDDepositResult▶
outcomestringrequiredNode submission outcome; uncertain retains the known transaction ID and input ownership.
one ofacceptedrejecteduncertainprovisionBoxIdstringrequiredUTXO id of the newly minted provision box
ownerNFTstringrequiredToken that owns the provision. Whoever holds it controls the provision, and it does not change when the box id does.
sharesstringrequiredamountXstringrequiredamountYstringrequiredtxIdstringrequired
400Malformed body, or a non-positive `shares`.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The pool moved. Re-read and quote again.LDStateChangedResponse▶
errorintegerrequiredreasonstringrequireddetailstringrequiredWhat moved, and what it moved to
poolBoxIdstringCurrent pool box id
vaultBoxIdstringCurrent vault box id
provisionBoxIdstringCurrent provision box id
422Costs more than the given bounds, 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
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description