Giter Site home page Giter Site logo

evm_scan_wallets's Introduction

Generate random addresses and check balances

A script that generates random 12 words mnemonic, derives the address and check for balance.

How to use it

  • 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

In case a valid wallet is found

The wallet information (mnemonic, address, amount of tokens held) is displayed in the console.
If the Sendgrid API key is set, the script sends an email.

evm_scan_wallets's People

Contributors

dani69654 avatar ilyesm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evm_scan_wallets's Issues

hi, i have riscontred this is error

throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
at Hmac.update (internal/crypto/hash.js:84:11)
at Function.HDKey.fromMasterSeed (/home/crypto/Scrivania/Script_GenerateMnem_Check_Balance-main/node_modules/hdkey/lib/hdkey.js:181:54)
at findBalance (/home/crypto/Scrivania/Script_GenerateMnem_Check_Balance-main/gen.js:30:26)
at generateMnemonic (/home/crypto/Scrivania/Script_GenerateMnem_Check_Balance-main/gen.js:26:3)
at getWordsFromFile (/home/crypto/Scrivania/Script_GenerateMnem_Check_Balance-main/gen.js:13:73)
at Object. (/home/crypto/Scrivania/Script_GenerateMnem_Check_Balance-main/gen.js:55:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'ERR_INVALID_ARG_TYPE'

am I doing something wrong?

jonathandoe@MacBook-Air script_generatemnem_check_balance % npm start

[email protected] start
node index.js

No Sendgrid API key found. This function is disabled.
API key does not start with "SG.".
/Users/jonathandoe/Script_GenerateMnem_Check_Balance/index.js:34
throw new Error(error.message || error)
^

Error: Invalid provider
at scan (/Users/jonathandoe/Script_GenerateMnem_Check_Balance/index.js:34:11)
at Object. (/Users/jonathandoe/Script_GenerateMnem_Check_Balance/index.js:38:1)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47

Node.js v17.0.1
jonathandoe@MacBook-Air script_generatemnem_check_balance %

index.js:34

Hi, I had this problem :
$ npm start

[email protected] start
node index.js

  • Scanning blockchain
    C:--\evm_scan_wallets-main\index.js:34
    throw new Error(error.message || error)
    ^

Error: Unexpected error occurred
at scan (C:--\evm_scan_wallets-main\index.js:34:11)

Issue

Lifecycle scripts included in [email protected]:
start
node index.js
test
echo "Error: no test specified" && exit 1

available via npm run-script:
format
prettier --write .

Error

Hi
** node -v
v10.19.0
**
**Description: Ubuntu 20.04.3 LTS
**
I have tried with the infura rpc and my own with geth but I get this error, any ideas?
root@cyberpanel:~/evm_scan_wallets# npm start

[email protected] start /root/evm_scan_wallets
node index.js

/root/evm_scan_wallets/modules/web3Factory.js:7
path = "m/44'/60'/0'/0/0"
^

SyntaxError: Unexpected token =
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/root/evm_scan_wallets/index.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-12-15T20_57_22_726Z-debug.log

issue

Ok I found what I was doing wrong on my previous issue and my apologies for not adding info. My new issue is im getting this error:
No Sendgrid API key found. This function is disabled.
C:\Users\nate\Downloads\evm_scan_wallets-main\index.js:34
throw new Error(error.message || error)
However, I created a .env file in the "evm_scan_wallets-main" folder and put:
ETHEREUM_PRC_NODE =https://mainnet.infura.io/v3/(my key)
SENDGRID_API_KEY =
what am I doing wrong?

offline usage

sorry is possible modify with addres databese .txt file?

Not working

Hello great work and a great idea but somehow it does not seem to work. I hosted it on heroku and vercel but it won't work. Please can you upload it to heroku or any online site to see if it works. Please help me I really need this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.