-
Notifications
You must be signed in to change notification settings - Fork 0
Using crypto wallets
The data directory is the place where your balance, your settings etc. are stored. They are not meant to be touched by a normal user, but especially for smaller projects it is often necessary to do some things manually.
You can find the default paths here: https://en.bitcoin.it/wiki/Data_directory
The data directory for your cryptocurrency will be in a similar location, just with the name of your coin instead of "bitcoin".
To make a backup of your coins, locate the data directory and copy the file called wallet.dat
that is located within. This file contains your coins, or more accurately, your private keys.
To reset everything (e.g. because something is broken) and start from scratch, do the following:
- Close the wallet.
- Rename your data directory. E.g. if the previous folder name was
Bitcoin
, rename it toBitcoin-1
- Start the wallet again. It will now create a new folder called
Bitcoin
and will ignore the old data directory. - If everything works, close the wallet and copy over your
wallet.dat
file from the old to the new data directory to import your private keys and get back your funds.
Sometimes it is necessary to run the wallet with a so called "command line switch" that usually starts with a dash, like this: -rescan
. How this is done depends on your operating system. Windows users typically don't know how to do this, so here is a simple method:
- Locate the binary of your wallet (the .exe file)
- Right click, create new shortcut
- Right click on the new shortcut, Properties
- Locate the "target" field that contains your binary name enclosed in double quotes, e.g.:
"C:\Users\username\Downloads\bitcoin.exe"
- Append your command line option outside of the quotes and with a space in between, like this:
"C:\Users\username\Downloads\bitcoin.exe" -rescan
- Save the shortcut
- Click on the shortcut
The program is now being executed with the command line option your inserted before.