Last active
July 14, 2020 20:54
-
-
Save petejkim/d90b21731bf0d24e78ee037c2b247d62 to your computer and use it in GitHub Desktop.
Introduction to Building on DeFi with Ethereum and USDC - Part 1 - wallet.js
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
const ethers = require("ethers"); | |
// Replace the following with your own mnemonic | |
const mnemonic = | |
"rabbit enforce proof always embrace tennis version reward scout shock license wing"; | |
const wallet = ethers.Wallet.fromMnemonic(mnemonic); | |
console.log(`Mnemonic: ${wallet.mnemonic.phrase}`); | |
console.log(`Address: ${wallet.address}`); | |
module.exports = wallet; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment