Post
Topic
Board Bitcoin Technical Support
Merits 16 from 6 users
Re: Help with legacy wallet.dat recovery (bounty)
by
achow101
on 02/06/2025, 19:01:21 UTC
⭐ Merited by LoyceV (6) ,ABCbits (5) ,Cricktor (2) ,RickDeckard (1) ,nc50lc (1) ,ranochigo (1)
I started writing a modern pywallet replacement that may work: https://github.com/achow101/wallet-manipulator. You should be able to install it with pip install . and then the wallet-manipulator should be available. You can then export your private keys with
Code:
wallet-manipulator <path to file> export privkeys

You can use an additional --importable option after export to get json formatted output that can be dropped directly into a Bitcoin Core importdescriptors command.

However, since you said that these files are recovered rather than the original files, this may not get all of your private keys nor will it necessarily be able to even read the files. It uses my own implementation of a BDB file parser and it generally requires that the file is properly formatted. In possible corruption scenarios, it may not behave as expected.