MCPcopy Create free account
hub / github.com/ExtropyIO/SolanaBootcamp / loadKeypairsBatch

Function loadKeypairsBatch

utils/utils.ts:186–196  ·  view source on GitHub ↗
(
  location: string = ""
)

Source from the content-addressed store, hash-verified

184}
185
186export async function loadKeypairsBatch(
187 location: string = ""
188): Promise<Keypair[]> {
189 let keypairs: Keypair[] = [];
190 for (let i = 1; i < 3; i++) {
191 let file = `${location}${i}.json`;
192 keypairs.push(await loadKeypair(file));
193 }
194
195 return keypairs;
196}
197
198export async function loadKeypair(location: string = ""): Promise<Keypair> {
199 let load = await fs.readFile(location, {

Callers

nothing calls this directly

Calls 1

loadKeypairFunction · 0.85

Tested by

no test coverage detected