Check a pending fee flush
post
/dex/flush/checkPreview moving the pool's pending fees into the vault. The gap between the pool's and the vault's accumulators is what a flush would release.
Responses
200State of a prospective flushLDFlushCheck▶
pendingXstringrequirednanoERG fees the pool is holding for the vault. Decimal string.
pendingYstringrequiredToken side of the same. Decimal string.
canFlushbooleanrequiredA flush needs something to move, or the pool rejects it
poolAccXstringrequiredThe pool's current ERG accumulator. Decimal string.
poolAccYstringrequiredvaultAccXstringrequiredThe vault's ERG accumulator. Trails the pool's; the gap is exactly the money the vault does not yet have. Decimal string.
vaultAccYstringrequiredvaultBalanceAfterXstringrequiredWhat the vault would hold once the flush lands. Decimal string.
vaultBalanceAfterYstringrequiredlastFlushHeightinteger · int32currentHeightinteger · int32required
503Node 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