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

Function loadKeypair

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

Source from the content-addressed store, hash-verified

196}
197
198export async function loadKeypair(location: string = ""): Promise<Keypair> {
199 let load = await fs.readFile(location, {
200 encoding: "utf8",
201 });
202
203 return Keypair.fromSeed(Uint8Array.from(Buffer.from(load).slice(0, 32)));
204}
205/**
206 * Check if the particular programID is deployed to the network
207 */

Callers 1

loadKeypairsBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected