When you start Agama in Native mode a file is created in your Komodo data folder, called wallet.dat. This file holds all your native address private keys.
When you setup your wallet, the first thing you should do is save your wallet.dat file.
Make sure you have safely stopped the coin daemon and closed Agama before copying the wallet.dat file to a secure location.
Location of Komodo wallet.dat
Depending on your operating system, the default location of this file is in one the following folders -
- Linux: ~/.komodo
- macOS/OSX: ~/Library/Application Support/Komodo
- Windows: %APPDATA%/Komodo
Location of Komodo based Assetchain wallet.dat
Komodo asset-chains have their own subfolder within the directory containing Komodo's wallet.dat.
As and example, below is the default location for the wallet.dat file for the REVS asset-chain.
(change REVS to the name of the asset-chain wallet.dat file you want to backup)
- Linux: ~/.komodo/REVS
- macOS/OSX: ~/Library/Application Support/Komodo/REVS
- Windows: %APPDATA%/Komodo/REVS
Note: The folders above might be hidden. Below are some links to unhide folders depending on operating system -
- Linux (Ubuntu): https://itsfoss.com/hide-folders-and-show-hidden-files-in-ubuntu-beginner-trick/
- macOS/OSX: http://osxdaily.com/2016/12/12/show-user-library-folder-macos-sierra/
- Windows: https://www.laptopmag.com/articles/show-hidden-files-windows
To backup your wallet.dat, navigate to the location described above based on your operating system and copy + paste the file to a secure location. It is highly recommended to use an encrypted folder, or offline storage such as a USB stick.
You should regularly backup your wallet.dat after creating a new address or a sending funds to another address. (When you send outgoing transactions in native mode it is possible a change address may be generated)
To restore your wallet.dat file, copy it back in to the specific folder for your operating system. This will overwrite the existing wallet.dat, so make sure to back it up first if it contains funds.
If you want to import addresses from one wallet.dat to another, you can export your private keys from Agama Native mode. Then, after closing Agama and restoring a different wallet.dat, restart Agama and import the private key.