Skip to content

Instantly share code, notes, and snippets.

@maestroh1git
maestroh1git / App.js
Created August 31, 2022 11:10 — forked from dabit3/App.js
Persisting a keypair for reading across clients
/*
* this file includes both a node.js script for creating a keypair
* as well as the client code for using it
*/
/* createKeypair.js */
const fs = require('fs')
const anchor = require("@project-serum/anchor");
const web3 = require('@solana/web3.js')
const account = anchor.web3.Keypair.generate();