Documentation
    Preparing search index...

    Interface LookupTableFetcher

    Interface for fetching lookup tables for a set of addresses.

    Implementations of this class is expected to cache the lookup tables for quicker read lookups.

    interface LookupTableFetcher {
        getLookupTableAccountsForAddresses(
            addresses: PublicKey[],
        ): Promise<AddressLookupTableAccount[]>;
        loadLookupTables(addresses: PublicKey[]): Promise<LookupTable[]>;
    }
    Index

    Methods

    • Given a set of public key addresses, fetches the lookup table accounts that contains these addresses.

      Parameters

      • addresses: PublicKey[]

        The addresses to fetch lookup tables for.

      Returns Promise<AddressLookupTableAccount[]>

      The lookup table accounts that contains the given addresses.

    • Given a set of public key addresses, fetches the lookup table accounts that contains these addresses and caches them for future lookups.

      Parameters

      • addresses: PublicKey[]

        The addresses to fetch lookup tables for.

      Returns Promise<LookupTable[]>

      The lookup tables that contains the given addresses.