-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_index.js
36 lines (27 loc) · 1.3 KB
/
example_index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Donations are welcome
// BNB
// bnb1eyvjl0zmp0wke36gxts4hu3wtgtnpw5dnj5ja3
// Ethereum / Ethereum Tokens / BNB / Binance Smart Chain Tokens
// 0x5Cd8C416d3061398b868dC2a5C835C9865caDc7E
// Litecoin
// ltc1qel8yaqz34pqqp87eey7zx0zz6jkk82wu65en6v
// Bitcoin
// bc1q75yh6ttwxazfhxnw3cwpqztvrkttjsh2a73mcy
const { AddressFinder } = require("./recoverFunds_manypaths");
// NOTE!!! Unless you are 100% certain that your seed will not
// be compromised by this, it's best to setup a new seed after
// the process.
// Fill in values for following variables:
// Enter the address you want to find (the one where your funds are):
const TARGET_ADDR = "0xc79bfC83D301031FE4aC559F66a0e1a7D20f4c38".toLowerCase();
// Fill in the Ledger Recovery Phrase (or other mnemonic, if relevant) below (24 words)
const MNEMONIC = "congress fury organ twenty text cruise sample ugly butter dog until air already flock stool master foil jaguar hint trophy brief remind cake bridge";
// And optionally
// If you used a passphrase on your Ledger Device (the "25th" word),
// Enter it below or otherwise leave as is
const PASSPHRASE = "";
const MAX_DEPTH = 2;
const MAX_PATH_INDEX = 20;
const MAX_CHILD_INDEX = 20;
let finder = new AddressFinder(MNEMONIC, PASSPHRASE, MAX_DEPTH, MAX_PATH_INDEX, MAX_CHILD_INDEX);
finder.findAddress(TARGET_ADDR);