A verified pool's recent activity
/dex/pools/{poolNft}/activity/recentGET /dex/activity/recent for any verified pool. On a token/token pool ergIn means X was sold. Collected for verified pools only.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Query parameters
limitinteger · int32Most entries
Responses
200Recent pool transitions, 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.
collectedFrominteger · int32The height a verified pool other than ERG:LIT joined the verified list. Nothing before it is collected, so a graph covering earlier heights shows that range as not collected. Absent for ERG:LIT, whose whole life is collected.
partialbooleanPresent and true for stale snapshots; inspect stats.historyComplete for history coverage.
404Not a verified pool, so nothing is collected for it.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503No snapshot yet, or the pool index is still building. 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.
collectedFrominteger · int32The height a verified pool other than ERG:LIT joined the verified list. Nothing before it is collected, so a graph covering earlier heights shows that range as not collected. Absent for ERG:LIT, whose whole life is collected.
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description