Bitcoin Forum
May 05, 2024, 09:44:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Corrupted wallet recovery. on: January 22, 2023, 01:01:09 PM
Thank you nc,

I'll give that a try after the recovery scan has completed
2  Bitcoin / Bitcoin Technical Support / Re: Corrupted wallet recovery - How to use bitcoin-wallet tool on: January 22, 2023, 10:14:14 AM
I hope you created backups of the recovered wallet.dat file because tools will likely modify it during the recovery process.


I see that you're using Windows, the first thing to try is Bitcoin Core's own bitcoin-wallet tool.
It's pre-installed together with Bitcoin Core, should be in "bin" folder inside your Bitcoin installation folder (Program Files default).

To use it, go to that bin directory then right-click on an empty space in that file explorer window while not selecting any file, and select "Open PowerShell window here".
PowerShell will open and the displayed directory should be where bitcoin-wallet.exe is.

In PowerShell, type:
Code:
./bitcoin-wallet -wallet="full_path_to_wallet.dat" salvage
for example, if I put the corrupted wallet.dat in the same bin directory:
Code:
./bitcoin-wallet -wallet="C:\Program Files\Bitcoin\bin\wallet.dat" salvage

If there's an error, the wallet file is too corrupt or there are other issues.
If there's no error, salvage worked and the wallet may have been retrieved, the original wallet is renamed as .bak file while the new wallet.dat is the restored wallet file.

Thank you nc,

I've tried swapping my wallet.dat into a default wallet.  Get a couldn't salvage message,

My install has a daemon folder. When I use the powershell in there, with a copy of wallet in the same folder, I get an "invalid command" error

Code:
PS D:\BTC\daemon> ./bitcoin-wallet -wallet="D:\BTC\daemon\wallet.dat" salvage
Invalid command: salvage
PS D:\BTC\daemon>




I recovered wallet.dat with EaseUS but the .dat is a garbled mess that pywallet can't read.
Each time Bitcoin Core saves your wallet.dat, it writes to a different part of your disk. Pywallet has an option to search the entire disk, that might help. See [GUIDE] Recover your deleted keys.

Thank you Loyce.

Scanning now.

[moderator's note: consecutive posts merged]
3  Bitcoin / Bitcoin Technical Support / Re: Corrupted wallet recovery. on: January 22, 2023, 01:33:22 AM
Thank you Edwardard

pywallet...

4  Bitcoin / Bitcoin Technical Support / Re: Corrupted wallet recovery. on: January 22, 2023, 01:08:07 AM
Ok, thank you.



btw... this is my pywallet results

oh... maybe not. How to paste a screenshot?



[moderator's note: consecutive posts merged]
5  Bitcoin / Bitcoin Technical Support / Re: Corrupted wallet recovery. on: January 21, 2023, 11:49:38 PM
Yes, it's Bitcoin Core.

I have a password that needs entering to spend/send BTC.
6  Bitcoin / Bitcoin Technical Support / Corrupted wallet recovery. on: January 21, 2023, 11:40:48 PM
Long story short,

I did a fresh OS install on Drive 0.... which has... strike that, had, my BTC wallet on it.

I managed to stop the install, but the damage was already done.  I recovered wallet.dat with EaseUS but the .dat is a garbled mess that pywallet can't read.
However, I know the BTC addresses associated with the wallet and the passphrase. Can I regain access?

Thanks for any assistance.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!