<blockquote>
<p><strong>I have a 7 year old wallet.dat file</strong></p>
</blockquote>
<p>I guess that predates HD wallets. Which I think means you'll need to sweep all private keys which have money (UTXOs) currently associated with them.</p>
<p>For an HD wallet I believe you can probably sweep the Extended Private Masterkey shown at  the top of the <code>dumpwallet</code> output.</p>
<blockquote>
<p><strong>I'm stuck at the step dumpprivkey, because I don't know what &lt;your bitcoin address&gt; means.</strong></p>
</blockquote>
<p><code>listunspent</code> should help by giving you a list of addresses which actually have money associated with them.</p>

CC BY-SA 4.0
2021-05-08T18:00:28.143Z
Command listunspent shows an empty array, although the wallet cannot be empty.
askingthequestions
CC BY-SA 4.0
2021-05-05T18:34:59.940Z
2021-05-05T20:38:19.063Z
2021-05-05T20:38:19.063Z
RedGrittyBrick
<p>I have a 7 year old wallet.dat file that was created by the bitcoin-qt program (<a href="https://bitcoin.org/en/bitcoin-core/" rel="nofollow noreferrer">https://bitcoin.org/en/bitcoin-core/</a>).</p>
<p>Downloading the blockchain takes too long and I experienced that the downloaded chain risks getting corrupted. I decided to use Electrum so I can access the wallet's contents sooner.</p>
<p>I tried following the steps from <a href="https://en.bitcoin.it/wiki/Transferring_coins_from_Bitcoin-Qt_to_Electrum" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Transferring_coins_from_Bitcoin-Qt_to_Electrum</a>, but I'm stuck at the step <code>dumpprivkey</code>, because I don't know what <code>&lt;your bitcoin address&gt;</code> means. I have installed a new bitcoin-qt version so naturally the list of receiving addresses is empty.</p>
<p>I have also tried another approach with <code>dumpwallet</code>. This yields a 250 kb file with thousands of lines and I don't know what to do with that. Surely sweeping every single private key from that file isn't feasible?</p>
<p>Edit: with the command <code>listreceivedbyaddress 0 true</code> bitcoin-qt shows all addresses that once received bitcoin. I supplied them to the <code>dumpprivkey</code> function in order to get the corresponding private keys. This allowed me to finish the steps as described in the wiki article.</p>

<wallet><electrum><sweep>
Transferring bitcoin from old bitcoin core wallet to electrum
askingthequestions
# Transferring bitcoin from old bitcoin core wallet to electrum

(Asked by: username_0 on 2021-05-05)

I have a 7 year old wallet.dat file that was created by the bitcoin-qt program (<https://bitcoin.org/en/bitcoin-core/>).

Downloading the blockchain takes too long and I experienced that the downloaded chain risks getting corrupted. I decided to use Electrum so I can access the wallet's contents sooner.

I tried following the steps from <https://en.bitcoin.it/wiki/Transferring_coins_from_Bitcoin-Qt_to_Electrum>, but I'm stuck at the step `dumpprivkey`, because I don't know what `<your bitcoin address>` means. I have installed a new bitcoin-qt version so naturally the list of receiving addresses is empty.

I have also tried another approach with `dumpwallet`. This yields a 250 kb file with thousands of lines and I don't know what to do with that. Surely sweeping every single private key from that file isn't feasible?

Edit: with the command `listreceivedbyaddress 0 true` bitcoin-qt shows all addresses that once received bitcoin. I supplied them to the `dumpprivkey` function in order to get the corresponding private keys. This allowed me to finish the steps as described in the wiki article.

**Tags:** wallet, electrum, sweep


---

## 1 answers

### Answer by username_1 on 2021-05-05. Score: 1

> **I have a 7 year old wallet.dat file**

I guess that predates HD wallets. Which I think means you'll need to sweep all private keys which have money (UTXOs) currently associated with them.

For an HD wallet I believe you can probably sweep the Extended Private Masterkey shown at the top of the `dumpwallet` output.

> **I'm stuck at the step dumpprivkey, because I don't know what <your bitcoin address> means.**

`listunspent` should help by giving you a list of addresses which actually have money associated with them.

> **Comments:**
> **username_0**: Command listunspent shows an empty array, although the wallet cannot be empty.  

---

