- Ensure you succeeded with Step 1. Add testnet to Wallet to MetaMask
- Ensure you succeeded with Step 2. Install QAN XLINK Docker
Import private key to MetaMask
Learn how to add your new wallet which was generated by QAN XLINK to MetaMask.
Prerequisites
Note:
Before you start
Warning:
- Ensure you have backups of your seed phrase(s) and/or private key(s).
- Ensure you do NOT reset your already installed wallet application.
- Ensure you add a new wallet/address to your wallet application for testing.
- Ensure you do NOT use your wallet with funds for testing purposes.
- Ensure you never interact with tokens randomly airdropped to your wallet.
Get private keys from QAN XLINK (Linux)
Copy the Private key file from the Docker Volume to your desktop with the following command executed in your Terminal:
sudo cp /var/lib/docker/volumes/xlink/_data/privkey* > $HOME/Desktop/privkey.txt
Get private keys from QAN XLINK (Windows, macOS)
- Open Docker.
- Click ‘Volumes’ located on the left sidebar.
Click ‘xlink’ on the list.
After clicking on it, there will be two tabs: "IN USE" and "DATA"
Click on the "DATA" tab
You will see a file with the following name: privkey_0_0xYOURADDR.txt
Save the file ‘privkey_0_0xYOURADDRESS.txt’ on your desktop.
Try to right click the file name and then click ‘Save as...’ if the option appears.
If this doesn’t work then you can see three dots on the right side while hovering over the file name with your mouse, click on the three dots and click ‘Save as...’
Import private key to MetaMask
- Open MetaMask
Click on the colorful image located at the top of the MetaMask home screen.
By default, next to the colorful image stands ‘Account 1’.
- Click ‘Add account or hardware wallet’.
- Click ‘Import account’.
- Copy the contents from the file you saved on your Desktop (privkey_0_0xYOURADDR.txt) in the previous step (Get private keys from QAN XLINK) and paste it in the input box of the popup.
- Click the ‘Import’ button to finish the process.
At this point, the account has been successfully added and is available for use within MetaMask. You can add a dedicated name to it as well.