Restore Account
To restore a vault use the following command and follow the prompts to set up a new vault using an existing seed
Select the correct command for your operating system.
- Windows:
\haven-wallet-cli.exe --restore-deterministic-wallet
- MacOS & Linux:
./haven-wallet-cli --restore-deterministic-wallet
Once you enter the command in your terminal simply click return
or enter
on your keyboard to begin the account restoration. Your CLI should return instructions that say:
Specify a new wallet file name for your restored wallet (e.g., MyWallet).
Wallet file name (or Ctrl-C to quit):
Create a unique name for your wallet such as my-unique-wallet
and then click enter
or return
on your keyboard.
Avoid using spaces or special characters in the name of your wallet.
Your CLI should return instructions that say:Generating new wallet…
Specify Electrum seed:
Copy your entire seed phrase (25 words) to the clipboard and paste it into your terminal, then click enter
.
Please note that your seed will not be visible when you paste it into the terminal, this is normal.
Enter seed offset passphrase, empty if none:
If you have funds in this wallet then you can skip this step by clicking enter
or return
on your keyboard. Your CLI should then show an instruction that says:Enter a new password for the wallet:
Create and enter a strong password and click enter
or return
on your keyboard. The CLI should now show you an instruction that says:Confirm password:
Enter your password and then click enter
or return
on your keyboard. The CLI should now show you the seed phrase, so ensure it matches the seed phrase you saved prevously. It’s now likely that you’ll see an error because your vault is not connected to a daemon
such as:Error: wallet failed to connect to daemon: http://localhost:17750. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.
This is normal and instructions to solve this will also be shared below. For now, the CLI will then additional return instructions that say:Restore from specific blockchain height (optional, default 0):
If you know your wallet creation height you can enter it here or simply type 0
and enter
or return
on your keyboard. The CLI will now return instructions that sayThe daemon is not set up to background mine.
With background mining enabled, the daemon will mine when idle and not on battery.
Enabling this supports the network you are using, and makes you eligible for receiving new haven
Do you want to do it now? (Y/Yes/N/No):
You can type no
and then hit return
or enter
on your keyboard to skip this with no adverse impact to your experience. The CLI will now say:If you are new to Haven, type "welcome" for a brief overview.
Error: wallet failed to connect to daemon: http://localhost:17750. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.
At this stage you have two options.
1. Run a local node: This can take days to download even on a fast internet connection. To do this, open another tab in your CLI, assuming you’re in the same CLI directory and type ./havend
2. Run a remote node: This is much faster and syncs usually in under 30 minutes. Remote nodes can see your IP so if this is a concern, use a VPN. You can learn more about Remote Nodes here. Otherwise you can type one of these following comands to set a daemon then click enter
or return
on your keyboard.
set_daemon remote.eu.havenprotocol.org:17750 trusted
set_daemon nodes.hashvault.pro:17750 trusted
set_daemon remote.haven.miner.rocks:17750 trusted
You now have set a daemon and the CLI should now show you the following:
Error: Expected trusted or untrusted, got 17750: assuming untrusted
Daemon set to remote.eu.havenprotocol.org:17750, untrusted
[wallet [first-five-letters-of-address] (out of sync)]
The final step is to type refresh
and then click enter
or return
and your CLI vault will now start syncing. Your CLI should show the amount of blocks synced and blocks remaining like:Height 10940 / 762937
Once your vault is synced you are free to use your wallet as you wish. Your CLI should show text such as:Currently selected account: [0] Primary account
Tag: (No tag assigned)
ONSHORE - balance: 0.000000000000, unlocked balance: 0.000000000000,
OFFSHORE - balance: 0.000000000000 xUSD, unlocked balance: 0.000000000000 xUSD
If you don’t see the above text, simply type balance
. If you’d like to see your address just type address
and click enter
or return
on your keyboard. Now that you have successfully restored a vault you won’t have to repeat this process, unless you have other wallets you want to restore. Next time you login, you simply have to start the wallet with the command for your OS but without including the --restore-deterministic-wallet
flag. You can do that by typing either:
- Windows:
\haven-wallet-cli.exe
- MacOS & Linux:
./haven-wallet-cli
When logging back in CLI will ask for the wallet name, so enter the one you just restored to the wallet you want to open. The CLI will recognize your vault and then ask for your password. It’s likely you will need to set a daemon
or refresh
the vault which can be done by copying the set_daemon
command above then typing refresh
.
Lastly, to end your session you can type exit
into the terminal.