Claim a provision's fees on any pool
/dex/pools/{poolNft}/provisions/{boxId}/claimapi_keySettles one of this wallet's provisions on the pool against the pool's vault, paying what the vault owes it. Needs the provision's ownerNFT in this wallet and a vault flushed since the provision last claimed. The provision gets a new box id, returned as successorBoxId. Open on every pool, whatever its genesis. The body is optional; every field bounds the claim.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
boxIdstringrequiredThe provision box to settle
Request body
LDClaimRequest · application/jsonexpectedVaultBoxIdstringThe vault box this was quoted against
expectedProvisionBoxIdstringThe provision box this was quoted against
minAmountXstringLeast you will accept on the ERG side. Decimal string.
minAmountYstringThe same on the token side. Decimal string.
Responses
200The claimLDClaimResult▶
outcomestringrequiredNode submission outcome; uncertain retains the known transaction ID and input ownership.
one ofacceptedrejecteduncertainclaimedXstringrequirednanoERG paid out of the vault. Decimal string.
claimedYstringrequiredRaw token units paid out of the vault. Decimal string.
successorBoxIdstringrequiredNew provision box id. Use it for the next request.
txIdstringrequired
400The provision has nothing to settle until the pool is flushed, or the vault cannot pay what it is owed.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 of the pool with that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The vault or the provision moved since the quote, or another LithosDex mutation is running. Re-read and resend.LDStateChangedResponse▶
errorintegerrequiredreasonstringrequireddetailstringrequiredWhat moved, and what it moved to
poolBoxIdstringCurrent pool box id
vaultBoxIdstringCurrent vault box id
provisionBoxIdstringCurrent provision box id
422The claim pays less than a minimum, or this wallet does not hold the provision's ownerNFT.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503The pool index is still building, 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