Recent pool activity
/dex/activity/recentTransactions that moved the pool, newest first, unconfirmed ones included: swaps, deposits, redemptions, resizes and flushes, each marked as an order fill or a direct spend. A MEMPOOL entry can still be dropped or replaced. Served from a background snapshot of the bounded 30D history window. Check stats for freshness and history coverage; stale responses also carry partial: true. Requests never perform node reads.
Query parameters
limitinteger · int32default 10How many to return, capped at 50
Responses
200Transactions that moved the pool, newest firstLDRecentActivity▶
▶
activityLDActivityEntry[]requiredtxIdstringrequiredtypestringrequiredSWAP trades against the reserves. DEPOSIT opens a provision and REDEEM closes one. RESIZE changes a provision's size and flushes. FLUSH moves pending fees to the vault.
one ofSWAPDEPOSITREDEEMRESIZEFLUSHviastringrequiredORDER when the transaction fills a LithosDex order, DIRECT otherwise. RESIZE and FLUSH are always DIRECT.
one ofORDERDIRECTorderBoxIdstringThe order this transaction filled. Present when
viais ORDER.statusstringrequiredMEMPOOL entries are unconfirmed and can still be dropped or replaced. They are listed ahead of every confirmed entry.
one ofMEMPOOLCONFIRMEDheightinteger · int32Block height. Present when CONFIRMED.
timestampinteger · int64Unix milliseconds. Present when CONFIRMED and resolved.
ergInbooleanSWAP only. True when ERG was sold for the token.
amountInstringSWAP only. Raw units handed to the pool, pool fees included. Decimal string.
amountOutstringSWAP only. Raw units received. Decimal string.
amountXstringNot present for SWAP. nanoERG added to the reserves by a DEPOSIT or a growing RESIZE, returned from them by a REDEEM or a shrinking RESIZE, or moved to the vault by a FLUSH. Decimal string.
amountYstringNot present for SWAP. Token side of
amountX. Decimal string.sharesstringDEPOSIT, REDEEM and RESIZE only. Shares issued or closed; for RESIZE, the signed change. Decimal string.
▶
statsDexStatsViewstatusstringrequiredFreshness only. Coverage is a separate question — read
historyCompleteand a graph'spartial.one ofdisabledloadingreadystaleunavailableupdatedAtinteger · int64When the last successful refresh began, in Unix milliseconds, before it read the node.
sourceHeightinteger · int32sourceBlockIdstringThe chain tip checked before and after the read. Current price and activity can also include the mempool.
windowStartHeightinteger · int32Earliest height you can ask for, max(0,
sourceHeight- 21600).coverageStartHeightinteger · int32Oldest retained pool snapshot, including a predecessor where one exists.
historyCompletebooleanWhether the history read reached the start of the index, or a predecessor, before the requested window.
refreshingbooleanrequiredrestoredbooleanrequiredLoaded from disk. Stale until a node read succeeds, and never overwrites newer live data.
errorstringShort refresh failure message. Details stay in the client log.
partialbooleanPresent and true for stale snapshots; inspect stats.historyComplete for history coverage.
400A non-positive `limit`.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503No cached snapshot; statistics are loading, unavailable, or disabled. Retry-After is 5 seconds.DexStatsUnavailable▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
▶
statsDexStatsViewrequiredstatusstringrequiredFreshness only. Coverage is a separate question — read
historyCompleteand a graph'spartial.one ofdisabledloadingreadystaleunavailableupdatedAtinteger · int64When the last successful refresh began, in Unix milliseconds, before it read the node.
sourceHeightinteger · int32sourceBlockIdstringThe chain tip checked before and after the read. Current price and activity can also include the mempool.
windowStartHeightinteger · int32Earliest height you can ask for, max(0,
sourceHeight- 21600).coverageStartHeightinteger · int32Oldest retained pool snapshot, including a predecessor where one exists.
historyCompletebooleanWhether the history read reached the start of the index, or a predecessor, before the requested window.
refreshingbooleanrequiredrestoredbooleanrequiredLoaded from disk. Stale until a node read succeeds, and never overwrites newer live data.
errorstringShort refresh failure message. Details stay in the client log.
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description