<p>According to  <a href="https://github.com/OmniLayer/omniwallet/wiki/Exporting-a-private-key-from-Bitcoin-Qt---Bitcoin-Core-and-importing-to-Omniwallet.org" rel="nofollow noreferrer">this</a> and <a href="https://bitcoin.stackexchange.com/a/5933">this stackexchange answer</a> and so many other resources, I can get my wallet's private key by using the <code>dumpprivkey</code> command on the debug console of Bitcoin Core (Qt) and import it into another wallet like Electrum or blockchain.info or many other wallets.</p>

<p>So I follow the instructions to export the private key for one of my bitcoin addresses found on 'receiving addresses' of Bitcoin Core desktop application. The private key is dumped successfully, then I create a wallet on Electrum using this private key. The wallet is created successfully. The problem is it shows my balance as 0, and also in addresses tab, my bitcoin address is totally different from what I had in Bitcoin Core.</p>

<p>I also tried creating the wallet using the public address (watch-only address) which shows the balance correctly but as the name suggests, I cannot spend it because the wallet is created using only the public key.</p>

<p>I dug a little deeper and tried to create the wallet using uncompressed private key format (I used bitaddress to get the uncompressed key) but the result was exactly the same with the exact same bitcoin address which is different from my original bitcoin address.</p>

<p>I also tried all the steps for blockchain.info wallet, but no luck, the result was the same again.</p>

<p>I'm really depressed and beginning to think that I've messed up somehow and cannot transfer my bitcoins from this wallet and may try to move on and forget about it. So my question is, have I done something wrong or I should download all the transactions on my laptop to be able to transfer BTC?</p>

<p>One thing that I forgot to mention is that I could not download all the transactions on Bitcoin Core client because of free space limitation on my ssd. So I cannot transfer any BTC using this application.</p>

CC BY-SA 4.0
2018-05-08T01:52:17.550Z
Were you using a segwit address in Bitcoin core?
Raghav Sood
CC BY-SA 4.0
2018-05-08T01:55:34.280Z
@RaghavSood I'm sorry I don't know what segwit address is. I just added a new address in 'receiving addresses' window of Bitcoin Core.
Ashkan
CC BY-SA 4.0
2018-05-08T02:41:33.740Z
What is the first letter of your address in Bitcoin Core?
Raghav Sood
CC BY-SA 4.0
2018-05-08T02:44:05.690Z
it starts with '3'. private key starts with 'K'.
Ashkan
CC BY-SA 4.0
2018-05-08T02:45:58.017Z
That's a p2sh-wrapped segwit address, in that case. If you want to import it into Electrum, you can see [this](https://bitcoin.stackexchange.com/a/72912/7272) answer
Raghav Sood
CC BY-SA 4.0
2018-05-08T02:51:18.003Z
Yes thanks, I should just prepend 'p2wpkh-p2sh:' to my address and works like a charm! I did a lot of search and read tons of Q&As and finally find out that it was this easy! Thank you so much.
thank you very much.
Ashkan
<bitcoin-core><wallet.dat><private-key-export><private-key-import><wallet-import>
Bitcoin core dump private key gives a wrong key which corresponds to a different bitcoin address
Ashkan
# Bitcoin core dump private key gives a wrong key which corresponds to a different bitcoin address

(Asked by: username_0 on 2018-05-08)

According to [this](https://github.com/OmniLayer/omniwallet/wiki/Exporting-a-private-key-from-Bitcoin-Qt---Bitcoin-Core-and-importing-to-Omniwallet.org) and [this stackexchange answer](https://bitcoin.stackexchange.com/a/5933) and so many other resources, I can get my wallet's private key by using the `dumpprivkey` command on the debug console of Bitcoin Core (Qt) and import it into another wallet like Electrum or blockchain.info or many other wallets.

So I follow the instructions to export the private key for one of my bitcoin addresses found on 'receiving addresses' of Bitcoin Core desktop application. The private key is dumped successfully, then I create a wallet on Electrum using this private key. The wallet is created successfully. The problem is it shows my balance as 0, and also in addresses tab, my bitcoin address is totally different from what I had in Bitcoin Core.

I also tried creating the wallet using the public address (watch-only address) which shows the balance correctly but as the name suggests, I cannot spend it because the wallet is created using only the public key.

I dug a little deeper and tried to create the wallet using uncompressed private key format (I used bitaddress to get the uncompressed key) but the result was exactly the same with the exact same bitcoin address which is different from my original bitcoin address.

I also tried all the steps for blockchain.info wallet, but no luck, the result was the same again.

I'm really depressed and beginning to think that I've messed up somehow and cannot transfer my bitcoins from this wallet and may try to move on and forget about it. So my question is, have I done something wrong or I should download all the transactions on my laptop to be able to transfer BTC?

One thing that I forgot to mention is that I could not download all the transactions on Bitcoin Core client because of free space limitation on my ssd. So I cannot transfer any BTC using this application.

**Tags:** bitcoin-core, wallet.dat, private-key-export, private-key-import, wallet-import

> **Comments:**
> **username_1**: Were you using a segwit address in Bitcoin core?  
> **username_0**: @username_1 I'm sorry I don't know what segwit address is. I just added a new address in 'receiving addresses' window of Bitcoin Core.  
> **username_1**: What is the first letter of your address in Bitcoin Core?  
> **username_0**: it starts with '3'. private key starts with 'K'.  
> **username_1**: That's a p2sh-wrapped segwit address, in that case. If you want to import it into Electrum, you can see [this](https://bitcoin.stackexchange.com/a/72912/7272) answer  
> **username_0**: Yes thanks, I should just prepend 'p2wpkh-p2sh:' to my address and works like a charm! I did a lot of search and read tons of Q&As and finally find out that it was this easy! Thank you so much. thank you very much.  

---

## 0 answers

