QAN TestNet Docs

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.
  1. Copy the Private key file from the Docker Volume to your desktop with the following command executed in your Terminal:

    docker run --rm -it -v xlink:/xlink:ro alpine sh -c 'cat /xlink/privkey*'
    
  1. Open Docker.
  2. Click ‘Volumes’ located on the left sidebar.
  3. Click ‘xlink’ on the list.

    After clicking on it, there will be two tabs: "IN USE" and "DATA"

  4. Click on the "DATA" tab

    You will see a file with the following name: privkey_0_0xYOURADDR.txt

  5. 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

  1. Open MetaMask
  2. Click on the colorful image located at the top of the MetaMask home screen.

    By default, next to the colorful image stands ‘Account 1’.

  3. Click ‘Add account or hardware wallet’.
  4. Click ‘Import account’.
  5. 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.
  6. 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.

Previous

Install QAN XLINK Docker

Next

Import private key to Trust Wallet