getMultipleAccountsInfoBatched()
getMultipleAccountsInfoBatched()
function getMultipleAccountsInfoBatched(
connection,
pubKeys,
commitment?): Promise<AccountInfo<Buffer<ArrayBufferLike>>[]>;Defined in: utils.ts:624
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
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Connection to use |
pubKeys | PublicKey[] | Array of public keys to fetch account info for |
commitment? | Commitment | Desired level of commitment for querying the state |
Returns
Promise<AccountInfo<Buffer<ArrayBufferLike>>[]>
Array of AccountInfo objects