Bitcoin Forum
May 06, 2024, 01:29:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I bulk import private keys from a pywallet dump to new wallet?  (Read 202 times)
Hashman501 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 14, 2017, 02:20:40 PM
 #1

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

 
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715002187
Hero Member
*
Offline Offline

Posts: 1715002187

View Profile Personal Message (Offline)

Ignore
1715002187
Reply with quote  #2

1715002187
Report to moderator
1715002187
Hero Member
*
Offline Offline

Posts: 1715002187

View Profile Personal Message (Offline)

Ignore
1715002187
Reply with quote  #2

1715002187
Report to moderator
1715002187
Hero Member
*
Offline Offline

Posts: 1715002187

View Profile Personal Message (Offline)

Ignore
1715002187
Reply with quote  #2

1715002187
Report to moderator
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16605


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 14, 2017, 03:03:31 PM
 #2

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!