Post
Topic
Board Electrum
Merits 2 from 1 user
Re: Cannot restore my BTC wallet with a seed frase.
by
nc50lc
on 05/08/2025, 08:21:18 UTC
⭐ Merited by hosemary (2)
I noticed this one line in your previous reply:
The list lacks structure, I'm currently trying to contact BTCRecover dev to buy a script, that could automate that.

Because if it's just a simple list, you can already achieve that in BTCRecover by editing its "./btcrecover-master/derivationpath-lists/Electrum.txt" file.
But you should use a derivation path pointing to the target "chain_index" (receiving and change extended prv/pub key) and BTCRecover will search for the next level to match your given address.
The set defaults in the file only search the receiving addresses of legacy and SegWit script types from the actual master private (m) key to the "chain_index":
Quote from: Electrum.txt
m/0 #Electrum Legacy Wallets (BTC + Alts)
m/0'/0 #Electrum Segwit Wallets ( BTC + Alts)

There, you can add an extensive list of derivation paths that you want to check,
And may be important; if you want to include change addresses, add lines with internal chain_index of each:
e.g.:
Code:
#Defaults
m/0 #Electrum Legacy Wallets (BTC + Alts)
m/0'/0 #Electrum Segwit Wallets ( BTC + Alts)
# Change Address Defaults
m/1
m/0'/1

#Standard script types
m/44'/0'/0'/0
m/44'/0'/0'/1
m/49'/0'/0'/0
m/49'/0'/0'/1
m/84'/0'/0'/0
m/84'/0'/0'/1
The gist is, add /0 and another one with /1 to your target account_index derivation path to specify the next level external (receiving) and internal (change) chain_index.

And lastly, for it to work just like how you ticked "BIP39 seed" option in Electrum while using an Electrum seed,
Edit the b"electrum" part in line #1736 in "./btcrecover-master/btcrecover/btcrseed.py" file into b"mnemonic".

Test output ():
Code:
python seedrecover.py --tokenlist sample_token-electrum.txt --wallet-type electrum2 --mnemonic-length 12 --language en --addrs bc1q9sgy9rkqwnfgyal8m0lza3akcy0h45ehcmduv5 --addr-limit 1 --dsw

Wallet Type: btcrseed.WalletElectrum2
2025-08-05 16:00:34 : Using 12 worker threads
2025-08-05 16:00:34 : ***MATCHING SEED FOUND***, Matched on Address at derivation path: m/84'/0'/0'/0/0
-snip-
Seed found: inhale festival twenty cave casual vapor slush alley repeat alley illness frozen

The token file; "sample_token-electrum.txt" contains the seed in specified order with achors so BTCRecover wont have to arrange it:
Code:
^1^inhale
^2^festival
^3^twenty
^4^cave
^5^casual
^6^vapor
^7^slush
^8^alley
^9^repeat
^10^alley
^11^illness
^12^frozen

I tested this BTCRecover-1.12.0.