(location: string = "")
| 196 | } |
| 197 | |
| 198 | export 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 | */ |