- Clone this repo
- Create a
.env
file withPRIVATE_KEY=
followed by your private key (include the0x
) - Tinker with the code
- Run with
npm start
For your private key, use the Export Account
button to copy your URL.
Take this URL, and use it below to see your private key locally
const exportLink = 'PASTE YOUR EXPORT ACCOUNT HERE';
console.log(
'Private key is',
ethers.Wallet.fromMnemonic(exportLink.match(/\?account=(.+)$/)[1].replace(/-/g, ' ')).privateKey,
);