Fetcher and cache layer for fetching WhirlpoolSupportedTypes from the network Default implementation for WhirlpoolAccountFetcherInterface

Implements

Constructors

Properties

connection: Connection
fetcher: AccountFetcher<WhirlpoolSupportedTypes, SimpleAccountFetchOptions>

Methods

  • Fetch and cache the accounts for a given array of TokenAccount addresses

    Parameters

    • addresses: Address[]

      The array of token account addresses

    • Optionalopts: SimpleAccountFetchOptions

      WhirlpoolAccountFetchOptions instance to dictate fetch behavior

    Returns Promise<ReadonlyMap<string, null | AccountWithTokenProgram>>