- Ensure you succeeded with Step 1. Add testnet to Wallet to Trust Wallet
- Ensure you succeeded with Step 2. Install QAN XLINK Docker
Import private key to Trust Wallet
Learn how to add your new wallet which was generated by QAN XLINK to Trust Wallet.
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:
docker run --rm -it -v xlink:/xlink:ro alpine sh -c 'cat /xlink/privkey*'
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 Trust Wallet on desktop
- Open Trust Wallet
- Click on 'Settings'.
- Click ‘Manage Wallets'.
- Click 'Add new wallet'.
- Click 'Import or recover wallet'.
- Type in your Trust Wallet password.
- Choose 'I have 24 word Secret Phrase' from the dropdown menu.
- 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 ‘Next’ button to finish the process.
At this point, the account has been successfully added and is available for use within Trust Wallet. You can add a dedicated name to it as well.
Import private key to Trust Wallet on mobile
- Open Trust Wallet
- Click on 'Settings' located in the top left corner.
- Click ‘Wallets'.
- Click '+' located in the top right corner.
- Click 'Add existing wallet'.
- Choose 'Secret phrase' from the list.
- Click 'Multi-coin wallet'.
- 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 ‘Restore wallet’ button to finish the process.
At this point, the account has been successfully added and is available for use within Trust Wallet.