• Split fetching of Multiple Accounts Info into batches of 100 as the maximum number of accounts that can be fetched in a single call is 100

    Parameters

    • connection: Connection

      Connection to use

    • pubKeys: PublicKey[]

      Array of public keys to fetch account info for

    • Optionalcommitment: Commitment

      Desired level of commitment for querying the state

    Returns Promise<(null | AccountInfo<Buffer>)[]>

    Array of AccountInfo objects