Difference between revisions of "Import BTC private key to Electrum"

From DeFiChain-Wiki
(added Electrum download link etc.)
m
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
#Sweep the BTC private key that you got from the command <code>spv_dumpprivkey</code>  selecting "Wallet - Private Keys - Sweep" in the menu. You have to prepend the key with <code>p2wpkh:</code> since the originating address is a SegWit Bech32 format. More information can be found here: https://bitcoinelectrum.com/sweeping-your-private-keys-into-electrum/.  Example:
 
#Sweep the BTC private key that you got from the command <code>spv_dumpprivkey</code>  selecting "Wallet - Private Keys - Sweep" in the menu. You have to prepend the key with <code>p2wpkh:</code> since the originating address is a SegWit Bech32 format. More information can be found here: https://bitcoinelectrum.com/sweeping-your-private-keys-into-electrum/.  Example:
  
[[File:Sweep the key.png|left|frame|link=https://defichain-wiki.com/wiki/File:Sweep_the_key.png]]
+
[[File:Sweep the key.png|frame|link=https://defichain-wiki.com/wiki/File:Sweep_the_key.png|alt=|none]]
 +
 
 +
4. A popup will ask for the fee. The predetermined fee should be fine, just click send:
 +
[[File:Fees.png|frame|alt=|none]]
 +
 
 +
5. The BTC from your BTC DeFiWallet will now be moved to the address of the Electrum wallet from where you can send it somewhere else if you like.

Latest revision as of 13:49, 5 December 2021

Warning: Using native BTC is still in beta and it might not be possible to do much with BTC in the DeFiWallet! Try out first if you can really do what you plan to do (receiving, swapping, sending ...). If you need to get BTC out of the app and sending doesn't work, you can use the following work around:

You can use the BTC private key in Electrum to sweep the coins to an Electrum wallet as follows:

  1. Do this: Private key read out of the app
  2. Download Electrum from electrum.org and then create a new standard wallet with it -> https://bitcoinelectrum.com/creating-an-electrum-wallet/
  3. Sweep the BTC private key that you got from the command spv_dumpprivkey selecting "Wallet - Private Keys - Sweep" in the menu. You have to prepend the key with p2wpkh: since the originating address is a SegWit Bech32 format. More information can be found here: https://bitcoinelectrum.com/sweeping-your-private-keys-into-electrum/. Example:

4. A popup will ask for the fee. The predetermined fee should be fine, just click send:

5. The BTC from your BTC DeFiWallet will now be moved to the address of the Electrum wallet from where you can send it somewhere else if you like.