Step 1. You have to work on your airgapped PC to import the private key or seed into Electrum.
Step 1a. From your airgapped PC, if you have a paper wallet containing a private key:
1. Open up Electrum and, as soon as you're asked what kind of wallet you want to create, check "Import Bitcoin addresses or private keys"
2. Insert your private key in the textbox. Move on to Step 2.
Step 1b. From your airgapped PC, if you have a paper wallet containing a seed:
1. Open up Electrum and, as soon as you're asked what kind of wallet you want to create, check "Standard wallet"
2. Continue by checking the "I already have a seed" option and input your seed into the textbox.
3. After importing your seed, go to Wallet > Information and look for the Master Public Key. It should look something like this:
Code:
zpub6nXwKjUbuUY8BE2ETiErVgkSJZv5F5Ekz76dDFVzsmhNi26sm2WSkgNX4hmLE1c22q3prLJCcgC rkHyijEXsRb5SfNX5HAezmLVdinX1mTh
4. Scan the code using a barcode scanner or, the traditional way I like, write it down on a piece of paper Smiley Move on to Step 2.
Step 2. You have to work on your online PC to import the private key public address or the seed's Master Public Key into Electrum.
Step 2a. From your online PC, if you just imported a private key into your airgapped computer:
1. Open up Electrum. During the Install Wizard, select "Import Bitcoin addresses or private keys".
2. If you have a paper wallet, chances are you have a public address on it. So, depending on this:
2a. If you have the public address, insert it into the textbox.
2b. If you do not have the public address, go back to your airgapped PC's Electrum and click the Receive tab. On the right side of your window, the public address is shown. Write it down somewhere or scan the QR Code (click the QR Code tab for this) and insert the address into the online PC's Electrum textbox. Move on to Step 3.
Step 2b. From your online PC, if you just exported your Master Public Key from your airgapped computer:
1. Open up Electrum. During the Install Wizard, select "Standard wallet" followed by "Use a master key".
2. Insert the Master Public Key into the textbox. Move on to Step 3.
Step 3. Still working on the online PC, you have to create the sweeping transaction and export it:
1. Now you should see your balance in your online Electrum. Go to the Send tab, insert the address you want to send your BTC to and push the "Max" button. Do NOT leave it unchecked or you risk losing part of your funds! Press "Pay...", change the fee rate if you will and then press "Send".
2. In the bottom-left corner of the Transaction window, you have an "Export" button. Click Export > Export to file. After exporting it, either:
- Write the file onto a CD and insert the CD into your now-airgapped computer;
- Plug an SDHC/SDXC card (or a microSD with a SDHC/SDXC adapter if you have one around) into your online PC, put the file on it unplug it and flip the read-only switch so that your file/card never gets modified. Now plug it into your airgapped PC and copy the file there;
- Plug an USB stick into your online PC (preferably a stick with a read-only switch), put the file on it, unplug it, flip the read-only switch and put the file onto your now-airgapped PC.
Step 4. From your airgapped PC, you have to import the transaction and sign it:
1. In Electrum, go to Tools > Load transaction > From file and select the transaction you just copied.
2. Press "Sign" and export the transaction to File again (Export > Export to file..). Copy the file back to your online PC safely. Move to Step 5.
Step 5. Moving back to the online PC, you need to import the signed transaction and finally broadcast it:
1. In Electrum, go to Tools > Load transaction > From file and import the signed transaction file.
2. Press "Broadcast".