├── address.txt ├── package.json ├── README.md └── main.js /address.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "techaddicts-recovery-main", 3 | "version": "1.0.0", 4 | "description": "recover lost accounts on Metmask", 5 | "main": "main.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "ethers": "^5.7.2" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # accountRecovery 2 | recover lost accounts on Metmask 3 | 4 | 5 | You need 6 | -nodeJS 7 | -npm 8 | You can download it from here: https://nodejs.org/en/ 9 | 10 | also install ethersjs with 11 | npm install --save ethers from here: https://docs.ethers.io/v5/getting-started/ 12 | 13 | after that clone repository and start with npm 14 | 15 | Links about HD wallets: 16 | https://docs.ethers.io/v5/api/utils/hdnode/ 17 | https://github.com/bethanyuo/HD-wallet 18 | 19 | 20 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | const {ethers,utils} = require('ethers'); 2 | const fs = require('fs'); 3 | 4 | const provider = new ethers.providers.JsonRpcProvider('https://distinguished-prettiest-bush.bsc.quiknode.pro/6153a7f2821e488f5a6565c160460c2727727898/') 5 | 6 | const mnemonic = 'puzzle guard air express flame other return slot price wrap engage swift'; 7 | 8 | const hdNode = utils.HDNode.fromMnemonic(mnemonic); 9 | 10 | 11 | deriviation = { 12 | metamask : "m/44'/60'/0'/0/", 13 | ledger : "m/44'/60'/" 14 | 15 | } 16 | 17 | 18 | const tries = 10; 19 | 20 | async function getAccount(){ 21 | for(let i=0;i{ 29 | if(err){ 30 | console.error(err);}}); 31 | if(a.address == '0x933f93F0d74623c47Eb52639b5DB651e0899089A'){ //add your address 32 | console.log(a.address) 33 | console.log(a.privateKey) 34 | } 35 | } 36 | } 37 | getAccount() 38 | --------------------------------------------------------------------------------