RAILGUN Reloaded
    Preparing search index...

    Class SourceAggregator<T>

    Create an aggregates sources from multiple data source like RPCProvider, GraphProvider. Aggregates multiple data sources into single complete source of railgun events

    Type Parameters

    Index
    • get lastIteratedHeight(): bigint | undefined

      Highest block height the aggregator has covered during the latest sync.

      Returns bigint | undefined

      The last iterated height, or undefined before any sync.

    • Read data from all the sources.

      Parameters

      • options: SyncOptions

        Options to sync data

        • startHeight: bigint
        • OptionalendHeight?: bigint
        • liveSync: boolean
        • OptionalchunkSize?: bigint

      Returns AsyncGenerator<T>

      AsyncGenerator that returns EVMBlock