Claim settled fees for a provision
/dex/provisions/{boxId}/claimapi_keyPay out a provision's settled fees without changing its size. The provision gets a new box id — use successorBoxId from the response next. The body is optional.
Path parameters
boxIdstringrequiredUTXO id of the provision box
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
200Result of the claim transactionLDClaimResult▶
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
400Nothing to settle for this provision.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No live provision with that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The vault or provision moved. Re-read and try again.LDStateChangedResponse▶
errorintegerrequiredreasonstringrequireddetailstringrequiredWhat moved, and what it moved to
poolBoxIdstringCurrent pool box id
vaultBoxIdstringCurrent vault box id
provisionBoxIdstringCurrent provision box id
422Settles less than the given bounds, or the vault 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