# Restore old 2018/19 Wallet.dat with Zcash Node

**URL:** <https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701>\
**Category:** Zcash Apps\
**Created:** [December 12, 2024, 12:32pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701 "2024-12-12T12:32:32Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [December 16, 2024, 9:02pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/21 "2024-12-16T21:02:54Z")

</div>

The more keys it has to scan, the longer it will take. Besides running on a fast machine, theres not much else you can do to optimize it (and yes, the sync time before the various types of attack that came around after NU5 is like day and night)

---

<div class="post-metadata">

**Author:** ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://forum.zcashcommunity.com/u/Chris)\
**Post date:** [January 15, 2025, 10:23am UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/22 "2025-01-15T10:23:02Z")

</div>

I also have an old wallet.dat from 2018. I don’t remember if there was ZEC in the wallet, but if there was it would probably have been shielded.  
I loaded the old wallet.dat into zcashd 6.1.0 and reindexed. zcashd showed a balance of 0. debug.log reported 101 keys and 0 ZKeys.  
Is that proof that there are no funds in the wallet and no shielded addresses? Does zcashd still support the original shielded addresses?

---

<div class="post-metadata">

**Author:** ![Keydogg](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/keydogg/32/5472_2.png) [@Keydogg](https://forum.zcashcommunity.com/u/Keydogg)\
**Post date:** [January 15, 2025, 10:42am UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/23 "2025-01-15T10:42:11Z")

</div>

So what I did was run the zcash wallet CLI, then do “listaddresses” and in there I found my old Sapling shielded address. Then run getbalance to see the balance, then you have do a migration to a sprout address. If you need further info let me know!

---

<div class="post-metadata">

**Author:** ![conradoplg](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/conradoplg/32/42878_2.png) [@conradoplg](https://forum.zcashcommunity.com/u/conradoplg)\
**Post date:** [January 15, 2025, 2:26pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/24 "2025-01-15T14:26:41Z")

</div>

FYI I think you got it the other way around, you need to migrate from Sprout to Sapling (or Orchard)

---

<div class="post-metadata">

**Author:** ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://forum.zcashcommunity.com/u/Chris)\
**Post date:** [January 16, 2025, 5:21pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/25 "2025-01-16T17:21:28Z")

</div>

Thank you. I found a legacy random transparent address under listaddresses. There wasn’t a shielded address listed so I guess that confirms this wallet.dat is empty.

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [January 16, 2025, 6:11pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/26 "2025-01-16T18:11:21Z")

</div>

You could set ‘-allowdeprecated=z\_listaddresses’ and try that. All zcashd rpc commands pertaining to shielded addresses have a ‘z\_’ prefix. The newer commands are intended for unified accts and not legacy sapling so you need the flag above to run that command. You can see more about that in [zcash/doc/man](https://github.com/zcash/zcash/blob/master/doc/man/zcashd.1) and [Zcash 6.1.0 RPC Docs](https://zcash.github.io/rpc/)  
(If your debug.log info is accurate, though, it won’t help)

---

<div class="post-metadata">

**Author:** ![Keydogg](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/keydogg/32/5472_2.png) [@Keydogg](https://forum.zcashcommunity.com/u/Keydogg)\
**Post date:** [January 17, 2025, 12:29pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/27 "2025-01-17T12:29:41Z")

</div>

Okay so here’s what I did:

(Firstly @conradoplg was right we’re talking about Sprout addresses here, thank you for correcting me)

**Backup Wallet**

Have ZCashd fully sync  
Restart with the following command

./src/zcashd -exportdir=/home/alan

(choose whatever path you want the backup to be in, that’s mine above)

Then run another command window in the Zcash folder, and type

./src/zcashd-wallet-tool

It will ask you to name your backup, and then give you the recovery phrase. Take a copy of this (photo/screenshot/whatever) then it will disappear and you’ll be asked to type some random words from the phrase.

**Use ZCash CLI to find balance and then migrate to Sapling**

For me to find my sprout address balance I did the following in a new terminal window started in the zcash folder:

./src/zcash-cli listaddresses

There should be your Sprout Address in there, copy this and run:

./src/zcash-cli z\_getbalance zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Where the zxxxxx is your sprout address. Hopefully it will show you a balance, then it’s time to run the migration tool. Do this by running:

./src/zcash-cli z\_setmigration true

This will take a few days depending on your balance, but you can keep checking the status of the migration by typing:

./src/zcash-cli z\_getmigrationstatus

As part of the migration it will automatically create you a new Sapling address in your wallet and begin migrating funds randomly every 500 blocks until the wallet is below 0.01 balance. For me, I had about 22 ZEC and it took about 3 days to migrate.

I hope this helps, took me a while to figure all this out as I’m not a native Linux or Command Line user but got there in the end and now I have transferred my funds to YWallet on my phone so they are easy access 🙂

---

<div class="post-metadata">

**Author:** ![covfefe](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/covfefe/32/26692_2.png) [@covfefe](https://forum.zcashcommunity.com/u/covfefe)\
**Post date:** [January 17, 2025, 2:28pm UTC](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701/28 "2025-01-17T14:28:25Z")

</div>

Great to hear you managed to recover your funds.

And thanks for the detailed write up, hopefully it will help others who may find themselves in a similar situation.

[Previous page](https://forum.zcashcommunity.com/t/restore-old-2018-19-wallet-dat-with-zcash-node/49701.md?page=1)
