Created
March 17, 2022 20:02
-
-
Save critesjosh/538d0a90c96d1d7657207c41d3565286 to your computer and use it in GitHub Desktop.
create a new Celo account in node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers } = require("ethers"); | |
const wallet = new ethers.Wallet.createRandom(); | |
console.log(`PRIVATE_KEY="` + wallet.privateKey + `"`); | |
console.log(`Your account address: `, wallet.address); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment