Flush any pool
/dex/pools/{poolNft}/flushapi_keyMoves the pool's pending fees into its vault, so providers can claim them. Permissionless, and it pays you nothing; the network fee comes from this wallet. Open on every pool. The body is optional.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDFlushRequest · application/jsonexpectedPoolBoxIdstringexpectedVaultBoxIdstring
Responses
200The flushLDFlushResult▶
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 is pending, so the pool refuses a flush.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.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409The pool or the vault moved since the check, or another LithosDex mutation is running. Re-check and resend.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
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