<p>Go to Bitcoin 0.8.5 Console Window and run : </p>

<pre><code>dumpprivkey "myaddress"
</code></pre>

<p>Then in bitcoin 0.15.1</p>

<pre><code> importprivkey "mykey"
</code></pre>

<p>if you don't need to unlock your wallet even if it's encrypted since you are using Bitcoin-qt not RPC commands and you've already set your password when you started it.</p>

<p>if you don't want to use bitcoin-qt. go to terminal and run on v.8.5.0:</p>

<p>unlock your wallet if encrypted</p>

<pre><code>(space)bitcoin-cli walletpassphrase "passphrase" timeout
</code></pre>

<p>Get private key of any address:</p>

<pre><code>(space)bitcoin-cli dumpprivkey "myaddress"
</code></pre>

<p>if your wallet is encrypted run:</p>

<pre><code>(space)bitcoin-cli walletpassphrase "passphrase" timeout
</code></pre>

<p>Then go to the latest version and run:</p>

<pre><code> (space)bitcoin-cli importprivkey "mykey"
</code></pre>

<p>The space before the commands is important to the command will never be saved to logs.</p>

CC BY-SA 3.0
2018-02-07T12:36:15.137Z
when I tried this with the space I got an error.  When I did it without the result was "null".  Is null the correct result or a fail?
Bilbo
CC BY-SA 3.0
2018-02-07T12:37:25.777Z
are you on ubuntu?
Tailer
CC BY-SA 3.0
2018-02-07T12:56:07.350Z
No I am on Windows 10
Bilbo
CC BY-SA 3.0
2018-02-07T12:57:49.380Z
that's why. ignore it or find an alternative.
Tailer
CC BY-SA 3.0
2018-02-07T13:07:06.267Z
OK so your solution was for Ubuntu?
Bilbo
CC BY-SA 3.0
2018-02-07T13:10:40.147Z
"The space before the commands is important to the command will never be saved to logs." you can ignore it.
Tailer
CC BY-SA 3.0
2018-02-04T06:15:26.103Z
2018-02-04T06:22:21.160Z
2018-02-04T06:22:21.160Z
Tailer
<p>I bought and transacted BTC in 2013/2014.  I had a Bitcoin QT 0.8.5 wallet.  I plugged it in and it updated correctly to the latest block.  It correctly showed my BTC balance.  I made a transaction without enough fees, which has sat unconfirmed for weeks now.  I decided to upgrade to the latest Bitcoin Core wallet and so downloaded it, checked the Checksum, and then loaded it.  I swapped out the wallet file with my backup of my original wallet.  For some reason, it only shows about 1/1000th of my BTC holding.  I have got the blockchain completely up to date.  There are no other transactions showing, only those I have made.  I have gone back to QT 0.8.5 and it still shows the correct balance when the blockchain updates.  What am I doing wrong in the latest Core version?</p>

CC BY-SA 3.0
2018-01-21T09:17:00.107Z
try dumpwallet command and then import private keys manually.
Tailer
CC BY-SA 3.0
2018-02-03T05:06:20.723Z
Thanks.  Just to clarify, what is the process? Assume I have my old wallet.dat file in the bitcoin directory.  Where to from there?
Bilbo
CC BY-SA 3.0
2018-02-03T05:22:24.330Z
Sorry i didn't understand your question
Tailer
CC BY-SA 3.0
2018-02-03T05:37:28.077Z
Do I go into the latest Bitcoin Core0.15.X and go to Debug Window and type  bitcoin-cli dumpprivkey "myaddress"
then type bitcoin-cli importprivkey "mykey"
Bilbo
CC BY-SA 3.0
2018-02-03T09:58:42.857Z
Exactly, Nothing more.
Tailer
CC BY-SA 3.0
2018-02-04T03:57:04.267Z
My wallet is encrypted, do I need to unlock it first.  I have tried the walletpassphrase command and I get Method not found (code -32601)
Bilbo
CC BY-SA 3.0
2018-02-04T07:31:00.833Z
@bilbo After installing the new version of Bitcoin Core over the top of the previous version to do the upgrade, you should not need to replace your `wallet.dat` with the backup - but do make a fresh backup of your existing wallet before you start. Try staring the upgraded version of bitcoin-qt with the  `-rescan`  parameter if you are still missing coins. Let me know with @ reply if this helps and I will write it up as an answer.
Willtech
CC BY-SA 3.0
2018-02-07T12:35:27.200Z
@Willtech the coins are still missing
Bilbo
<bitcoin-core>
Upgrade from Bitcoin QT 0.8.5 to latest Bitcoin Core 0.15.X
Bilbo
# Upgrade from Bitcoin QT 0.8.5 to latest Bitcoin Core 0.15.X

(Asked by: username_0 on 2018-01-21)

I bought and transacted BTC in 2013/2014. I had a Bitcoin QT 0.8.5 wallet. I plugged it in and it updated correctly to the latest block. It correctly showed my BTC balance. I made a transaction without enough fees, which has sat unconfirmed for weeks now. I decided to upgrade to the latest Bitcoin Core wallet and so downloaded it, checked the Checksum, and then loaded it. I swapped out the wallet file with my backup of my original wallet. For some reason, it only shows about 1/1000th of my BTC holding. I have got the blockchain completely up to date. There are no other transactions showing, only those I have made. I have gone back to QT 0.8.5 and it still shows the correct balance when the blockchain updates. What am I doing wrong in the latest Core version?

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: try dumpwallet command and then import private keys manually.  
> **username_0**: Thanks.  Just to clarify, what is the process? Assume I have my old wallet.dat file in the bitcoin directory.  Where to from there?  
> **username_1**: Sorry i didn't understand your question  
> **username_0**: Do I go into the latest Bitcoin Core0.15.X and go to Debug Window and type  bitcoin-cli dumpprivkey "myaddress" then type bitcoin-cli importprivkey "mykey"  
> **username_1**: Exactly, Nothing more.  
> **username_0**: My wallet is encrypted, do I need to unlock it first.  I have tried the walletpassphrase command and I get Method not found (code -32601)  
> **username_2**: @username_0 After installing the new version of Bitcoin Core over the top of the previous version to do the upgrade, you should not need to replace your `wallet.dat` with the backup - but do make a fresh backup of your existing wallet before you start. Try staring the upgraded version of bitcoin-qt with the  `-rescan`  parameter if you are still missing coins. Let me know with @ reply if this helps and I will write it up as an answer.  
> **username_0**: @username_2 the coins are still missing  

---

## 1 answers

### Answer by username_1 on 2018-02-04. Score: 0

Go to Bitcoin 0.8.5 Console Window and run :

```
dumpprivkey "myaddress"

```

Then in bitcoin 0.15.1

```
 importprivkey "mykey"

```

if you don't need to unlock your wallet even if it's encrypted since you are using Bitcoin-qt not RPC commands and you've already set your password when you started it.

if you don't want to use bitcoin-qt. go to terminal and run on v.8.5.0:

unlock your wallet if encrypted

```
(space)bitcoin-cli walletpassphrase "passphrase" timeout

```

Get private key of any address:

```
(space)bitcoin-cli dumpprivkey "myaddress"

```

if your wallet is encrypted run:

```
(space)bitcoin-cli walletpassphrase "passphrase" timeout

```

Then go to the latest version and run:

```
 (space)bitcoin-cli importprivkey "mykey"

```

The space before the commands is important to the command will never be saved to logs.

> **Comments:**
> **username_0**: when I tried this with the space I got an error.  When I did it without the result was "null".  Is null the correct result or a fail?  
> **username_1**: are you on ubuntu?  
> **username_0**: No I am on Windows 10  
> **username_1**: that's why. ignore it or find an alternative.  
> **username_0**: OK so your solution was for Ubuntu?  
> **username_1**: "The space before the commands is important to the command will never be saved to logs." you can ignore it.  

---

