Author

Topic: How can I bulk import private keys from a pywallet dump to new wallet? (Read 217 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I think this is what you're looking for (edit to your needs):
The other file is a batch file to import the private keys, and gives you an option to run it after generating, the file looks like this:
Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M addr-1DfyaDvr-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 addr-1DfyaDvr-2 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 addr-1DfyaDvr-3 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF addr-1DfyaDvr-4 false

The "false" prevents a full rescan after every import, you'll need to rescan after the last import, so leave the last "false" out.
newbie
Activity: 1
Merit: 0
Bitcoin Client Software and Version Number: Bitcoin Core 0.15.1
Operating System: Windows 7 64-bit
System Hardware Specs: i7 CPU with 16 GB RAM 1tb ssd.
Description of Problem: How can I bulk import private keys from a pywallet --dumpwallet command to a new wallet.


I have an old unencrypted wallet file from about 2012. When I use this file with bitcoin core it claims it is corrupted and salvagewallet failed.

I've successfully managed to dump the private keys from from the file using pywallet --dumpwallet to a txt file.... Now I have a ton of keys and am looking for a quick way to import them into a new wallet.
I have Bitcoin Core 0.15.1 is fully in sync with the network and working with a new wallet file.

Im sure I could do it manually, but it would be far too time consuming to complete by hand. Is there a batch import command or method I can get pywallet or Bitcoin core to import the keys?

Thanks

 
Jump to: