Wallet.dat deleted

Hello, I know this sounds stupid (at least I feel like that), but I am trying to get a solution.

I have lost wallet.dat from zecwallet.fullnode.0.9.15 (Windows10).

The rest of folder and files are in place.

I am trying to recover it, as I cutted it and pasted to an external disc, but no success for the moment.

I had ZEC in a shielded wallet.

Is there any other way to recover to founds?.

Thanks and best regards.

I mean, shielded address.

You would need a back up of the wallet file or the plain text keys from the wallet to recover the funds. In an extreme case of file deletion, it may be possible to undelete or recover the data if it was not overwritten. The file could be overwritten if there was specialty security software that deletes data, or if the drive was in use and new data was written to the disk (this happens a lot in normal use; even when idle). Also, if the drive is a SSD, the drive or OS may be doing background TRIMs or garbage collection that will “overwrite” the data.

If the value of the lost coins is very valuable, then the drive must be removed from use (remove power immediately) and then forensically examined - usually by installing it in another system as read only with TRIM/background features disabled and then making an dump of the raw disk data to an image file to analyze for raw data recovery. This is best left for professional data recovery companies that may charge thousands of USD $ to try to recover the data with no guarantee.

There may be a restore point in system properties/system protection (hopefully😬)(the feature will have had to have been activated beforehand and a restore point created while that info was in that folder otherwise theres no point in doing it, alot of times its automatic so youll have to check on all that)

Thanks both for your support, I will follow your advice. I had a good amount of coins there.

I use HW to store Zcash, but wanted to give a try to shielded addresses running a full node.

I think wallet.dat encryption and Ledger HW shielded addreses are works in progress, hope to see them soon implemented.

Thankyou and best regards.

If you have the wallet.dat file on an external disk, then do the following:

  • Make sure ZecWallet is shut down.

  • Copy the wallet.dat file from the external disk to the node’s data directory (the directory where zcash.conf is). Don’t move the file, keep the backup on the external disk. In the case of ZecWallet on Windows, the data directory on recent Windows versions would usually be <Windows drive>:\Users\<username>\AppData\Roaming\Zcash. If there’s an existing wallet.dat in the way, rename that one to wallet.old first.

  • In the same directory, rename zcash.conf to zcash.conf.txt (accepting the prompt that this may make the file unusable, if you’re using the GUI). Double-click this file to edit it in notepad. Add the following lines at the end:


    and save the file.

  • Rename zcash.conf.txt back to zcash.conf.

  • Run ZecWallet and wait for it to fully resync. This may take several days depending on the speed of your network connection.

  • After it has synced, shut down ZecWallet and make sure to reedit zcash.conf to remove the reindex=1 and resync=1 lines before starting ZecWallet again.

(@adityapk00, is there a simpler way to pass the reindex and resync options to zcashd?)

1 Like

Thanks daira, I am trying to recover the file with recovery tools, but no success for the moment…