Restoring an Oxen CLI Wallet from keys
If you have a Mnemonic Seed Phrase, restoring your wallet from it would probably be a good option. Otherwise, you can restore your wallet from private keys. You will need to have the following keys to proceed:
- Wallet public address
- Spend Key
- View Key
- Run wallet with
./oxen-wallet-cli --generate-from-keys [New Wallet Name]
[New Wallet Name]is a new wallet name. You can enter any name here, use something memorable and meaningful.
On the next step, specify all 3 wallet keys, one by one:
- Enter Standard address and press [Enter]
- Enter Secret spend key and press [Enter]
- Enter Secret view key and press [Enter]
- You will be prompted for a password. Enter a new password that follows the Password Policy and press [Enter].
- Confirm password and press [Enter].
If you know the block height at which wallet was created or a first transaction was made, you can enter it here. Specifying a blockchain height will help to scan the wallet faster.
If you don't know a specific blockchain height, press [Enter] for scanning from block height 0.
For refresh process to start, you need to have your daemon running. Another option would be to use a remote node. For that, use the following command, replacing and with the host and port number of the remote node you are connecting to:
./oxen-wallet-cli --daemon-address <host>:<port>
Once refresh is done, you can use your full functioning restored wallet. Your public wallet address will remain the same.