Created
December 26, 2022 02:42
-
-
Save lowk3v/f5eaede757159351f99ebf8241090e67 to your computer and use it in GitHub Desktop.
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
var ethers = require('ethers'); | |
var crypto = require('crypto'); | |
var id = crypto.randomBytes(32).toString('hex'); | |
var privateKey = "0x"+id; | |
var wallet = new ethers.Wallet(privateKey); | |
if (wallet.address.endsWith('979')){ | |
console.log("SAVE BUT DO NOT SHARE THIS:", privateKey); | |
console.log("Address: " + wallet.address); | |
} | |
if (wallet.address.startsWith('84')){ | |
console.log("SAVE BUT DO NOT SHARE THIS:", privateKey); | |
console.log("Address: " + wallet.address); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment