Skip to content

Simple package for loading solana accounts via `getMultipleAccounts` i a more fancy way

License

Notifications You must be signed in to change notification settings

maksfourlife/solana-account-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solana-account-loader

Simple package for loading solana accounts via getMultipleAccounts in a more fancy way

Usage:

const batchSize = 100; // number of accounts to pass in a single getMultipleAccounts request
const pollInterval = 10; // time in ms to store keys in queue before requests
let loader = new AccountLoader(conn, batchSize, pollInterval);

let infos = await Promise.all(
  keys.map(async key => loader.load(key))
);

About

Simple package for loading solana accounts via `getMultipleAccounts` i a more fancy way

Resources

License

Stars

Watchers

Forks

Packages

No packages published