If you have all the files from the machine, I’d go looking for the folders below. The paths I’m giving you are where the files were on the machine before it was formatted, so the exact path might have changed based on wherever you saved all that data.
C:\Users\<your username>\AppData\Roaming\Anchor Wallet
C:\Users\<your username>\AppData\Local\Anchor Wallet
If you can find that folder from the machine before you formatted, make a copy of it immediately somewhere safe - that folder contained the working directory for Anchor and it’s data on the pre-formatted operating system, and can potentially be used to restore the account.
If you do find that old folder from your old operating system…
- Install Anchor, don’t start it.
- Close Anchor if it’s installed and already running (check the system tray in the lower left to ensure it’s not running in the background either, or check task manager and kill all Anchor processes). Restart your computer if you’re not sure how to do the above, and don’t start Anchor after the reboot.
- Find the current Anchor folder using one of the exact paths above. You’re looking for the configuration folder of your new installation, not the old installation folder.
- Once you find that folder, just to be safe, rename the
config.json file to
config.something.json (if it exists). Make sure you have a copy of it in the event you accidently overwrite a good version.
- Go into the folder you found in the first part of this post, and find the
config.json file from your pre-formatted machine. The timestamp on it should be from before you formatted your computer. You can open this file with a text editor if you want and do a “Find” in it to search for your account name. If you find your account name in there, it’s the right file and this file is the one that has an encrypted version of your keys.
- Create a copy of this
config.json file from the pre-formatted computer, and save it in multiple places. Put one copy of it in the folder you found in step 3.
- Make sure you have copies of all these config.json files! The one from the pre-formatted computer is the one with your keys in this situation, and you want to make sure you don’t lose that one if it’s the only place you have your keys saved.
- Once you have the
config.json file put into the folder on the newly installed operating system, and are absolutely sure you have a backup outside of that folder as well - go ahead and start Anchor.
If it works, the wallet should open up and run just like it did on your old operating system.
Sorry for the detailed warnings as I wrote that out - but I just wanted to make sure that if this was potentially the only place your keys existed, you had a bit of guidance on creating extra copies and not doing anything during this process that would cause you to lose them