Documentation
    Preparing search index...

    Class SimpleAccountFetcher<T, FetchOptions>

    Interface for fetching and caching on-chain accounts

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    cache: Map<string, CachedContent<T>> = ...
    connection: Connection
    retentionPolicy: RetentionPolicy<T>

    Methods

    • Populate the cache with the given accounts.

      Type Parameters

      • U

      Parameters

      • accounts: ReadonlyMap<string, null | U>

        A list of accounts addresses to fetched accounts to populate the cache with

      • parser: ParsableEntity<U>

        The parser that was used to parse theses accounts

      • now: number

        The timestamp to use for the cache entries

      Returns void