Hierarchy

Constructors

Properties

#log: Debugger = ...
#wantsKeys: Set<string> = ...

List of pubkeys to fetch metadata for

loaderFn?: ((pubkeys) => Promise<CachedMetadata[]>)

Custom loader function for fetching data from alternative sources

Type declaration

    • (pubkeys): Promise<CachedMetadata[]>
    • Custom loader function for fetching data from alternative sources

      Parameters

      • pubkeys: string[]

      Returns Promise<CachedMetadata[]>

Methods

  • Returns Promise<void>

  • Parameters

    • missing: string[]

    Returns Promise<CachedMetadata[]>

  • Start requesting a set of keys to be loaded

    Parameters

    • pk: string | string[]

    Returns void

  • Stop requesting a set of keys to be loaded

    Parameters

    • pk: string | string[]

    Returns void

  • Parameters

    • missing: string[]

    Returns RequestBuilder

  • Get object from cache or fetch if missing

    Parameters

    • key: string

    Returns Promise<undefined | CachedMetadata>

  • Returns number

  • Parameters

    • key: string

    Returns undefined | CachedMetadata

  • Returns string

Generated using TypeDoc