MCPcopy Create free account
hub / github.com/clockwork-xyz/examples / keypairFromFile

Function keypairFromFile

spl_transfer/tests/utils.ts:4–8  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

2import { ClockworkProvider } from "@clockwork-xyz/sdk";
3
4const keypairFromFile = (path: string): Keypair => {
5 return Keypair.fromSecretKey(
6 Buffer.from(JSON.parse(require("fs").readFileSync(path, "utf-8")))
7 );
8};
9
10// helpers
11let lastThreadExec = BigInt(0);

Callers 1

main.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected