A script that generates random 12 words mnemonic, derives the address and check for balance.
-
Run
npm i
-
Create a
.env
file in the root directory
The env file should look like this (the Sendgrid api key is not mandatory):
ETHEREUM_PRC_NODE =
SENDGRID_API_KEY =
- If the Sendgrid api is set, you must set the sender and the receiver email addresses (modules/sendgrid)
this.message = {
to: null,
from: null,
subject: '[Wallet Scan Script] - New wallet found',
text: '',
}
- Run
npm start
The wallet information (mnemonic, address, amount of tokens hold) is displayed in the console.
If the Sendgrid API key is set, the script sends an email.