Skip to content
docs

SourceState

Defined in: kit/src/activity/cursor.ts:7

One opaque cursor for a feed that merges several chains. Per (chain, address) source it keeps the source’s own cursor for the page to fetch next and how many rows at the head of that page the previous call already emitted (a page is refetched and skipped when the merge consumed only part of it).

optional c?: string

Defined in: kit/src/activity/cursor.ts:9

Source cursor for the page to fetch (undefined = the newest page).


optional l?: string

Defined in: kit/src/activity/cursor.ts:17

Id (chain:hash) of the last row of that page already emitted. When the page comes back shifted (new transactions landed at the head), the feed skips through this row instead of counting n, so nothing is shown twice.


n: number

Defined in: kit/src/activity/cursor.ts:11

Rows at the head of that page already emitted.