Flush pending fees to the vault
/dex/flushapi_keyMove the pool's pending fees into the vault, making them claimable. Anyone may call it and it pays the caller nothing. Returns 400 when nothing is pending. The body is optional.
Request body
LDFlushRequest · application/jsonexpectedPoolBoxIdstringexpectedVaultBoxIdstring
Responses
200Result of the flush transactionLDFlushResult▶
outcomestringrequiredNode submission outcome; uncertain retains the known transaction ID and input ownership.
one ofacceptedrejecteduncertainflushedXstringrequirednanoERG moved into the vault. Decimal string.
flushedYstringrequiredRaw token units moved into the vault. Decimal string.
txIdstringrequired
400Nothing pending to flush.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The pool or vault 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
422The wallet cannot cover the network fee.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