How to Restore wallet.dat on Mac from Bitcoin Core?

19 replies 354 views
wagmiNewbie
Posts: 301 · Reputation: 14
#1Oct 1, 2020, 10:10 AM
Hey everyone, I’ve got my wallet.dat from an old Bitcoin Core version on Windows. Trying to restore it on the latest Bitcoin Core for Mac. What do I need to watch out for to avoid compatibility issues?
6 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#2Oct 1, 2020, 01:53 PM
If I remember correctly, newer Bitcoin Core can read older wallet.dat files just fine. As long as it’s from version 0.8 or later, you should be good. But hey, backup your wallet.dat file first. Just in case.
2 Reply Quote Share
BasedDefiHero Member
Posts: 53 · Reputation: 2197
#3Oct 1, 2020, 03:51 PM
You don’t even need to fully sync to get your coins back. Extract the private key and import it into Electrum or any light wallet. You won’t have to download that huge blockchain. Just remember, make backup copies of your wallet.dat.
6 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#4Oct 1, 2020, 07:59 PM
You got it! But can you share links to those wallets? I’d rather not end up on some shady site. And how do I verify the signature?
1 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#5Oct 2, 2020, 12:31 AM
Sure thing, I can help with that. As for commands, you’ll want to make sure you have them in order. And yeah, Bitcoin Core does start syncing the moment you launch it.
4 Reply Quote Share
BasedDefiHero Member
Posts: 53 · Reputation: 2197
#6Oct 2, 2020, 07:43 PM
Could you also show how to import the entire wallet into Electrum instead of just individual keys? I heard sweeping is better. Plus, my wallet’s pretty old; are there extra steps for legacy addresses?
3 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#7Oct 3, 2020, 12:18 AM
Electrum is definitely the way to go. Check out this guide for downloading and signature verification. Signature verification is just ensuring you got the legit program. If the code changes, the signature check fails.
5 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#8Oct 3, 2020, 01:26 AM
Gotcha. But if I’m just using dumpwallet, do I really need a full sync? I think dumpwallet should work even if not fully synced.
3 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#9Oct 3, 2020, 04:22 AM
Yes, dumpwallet will run offline. But be careful; legacy wallet.dat uses hardened addresses that Electrum can’t derive from.
2 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#10Oct 3, 2020, 07:15 AM
Can you clarify that? So the dumpwallet gives me both addresses and private keys, right? Can I import multiple keys into Electrum?
3 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#11Oct 3, 2020, 07:21 AM
Yes! Electrum allows importing multiple WIF keys at once. Just keep in mind you may need to add the correct script type for non-legacy addresses.
2 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#12Oct 3, 2020, 10:40 AM
Sounds good! Automating this might save me some time. If I backup the addresses, can I check their balances without going online?
4 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#13Oct 3, 2020, 11:05 AM
Absolutely! You can check balances offline by creating a watch-only wallet or using scripts.
4 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#14Oct 3, 2020, 03:42 PM
Is there a command to list all wallet addresses in Bitcoin Core? I’d like to find out which ones have funds.
4 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#15Oct 3, 2020, 08:45 PM
Most commands need the node to sync first. If you want to avoid syncing, dumpwallet is your best bet.
5 Reply Quote Share
wagmiNewbie
Posts: 301 · Reputation: 14
#16Oct 4, 2020, 12:39 AM
Can we set address types so dumpwallet only gives us what we want? And what if I have a ton of addresses, is there a quick way to check balances?
2 Reply Quote Share
0xMatrixNewbie
Posts: 142 · Reputation: 7
#17Oct 5, 2020, 07:32 AM
You can use a script to automate the checks. Or use a website that lets you input addresses in bulk.
2 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#18Oct 5, 2020, 09:15 AM
You’ve got options! Write a simple script for offline checks, or go online for balance checks.
5 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#19Oct 5, 2020, 11:59 AM
Using my list of funded addresses helps keep things private. But remember, funds sent to pubkeys won’t show in a watch-only Electrum.
3 Reply Quote Share
Posts: 3523 · Reputation: 35
#20Oct 5, 2020, 01:05 PM
Unfortunately, that won’t reduce the output. Every private key will still be there regardless of address type.
1 Reply Quote Share

Related topics