initial commit
This commit is contained in:
9
ts/prereqs/keygen.ts
Normal file
9
ts/prereqs/keygen.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Keypair } from "@solana/web3.js";
|
||||
|
||||
//Generate a new keypair
|
||||
let kp = Keypair.generate()
|
||||
console.log(`You've generated a new Solana wallet: ${kp.publicKey.toBase58()}
|
||||
|
||||
To save your wallet, copy and paste the following into a JSON file:
|
||||
|
||||
[${kp.secretKey}]`)
|
||||
Reference in New Issue
Block a user