Skip to content

Instantly share code, notes, and snippets.

@petejkim
Last active July 14, 2020 20:54
Show Gist options
  • Save petejkim/d90b21731bf0d24e78ee037c2b247d62 to your computer and use it in GitHub Desktop.
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
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