Created
April 5, 2023 02:44
-
-
Save s749312025/38becfb5e47d88c2f9275e1c6c6c8bb1 to your computer and use it in GitHub Desktop.
get wallet for mnemonic
This file contains hidden or 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 mnemonic = "........." | |
var wallet = ethers.HDNodeWallet.fromPhrase(mnemonic) | |
console.log({wallet}); | |
console.log(wallet.privateKey); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment