Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: DaveF on November 05, 2016, 08:29:08 PM



Title: Extract all private keys from wallet.dat automatically
Post by: DaveF on November 05, 2016, 08:29:08 PM
I tried a search and could not find an answer.

Is there a way to pull all the private keys that are in a wallet automatically?

I have several wallets that have from 7 or 8 addresses in them to some older ones with 100s of addresses. I want to move them all into 1 new wallet.
I know I can do them one at a time, but that will take days and I'll always have the fear that I missed one.
Most of the addresses are dead, some have some dust but a few get some random payments now and then. So its worth some time and effort to move them.

Thanks,
Dave


Title: Re: Extract all private keys from wallet.dat automatically
Post by: achow101 on November 05, 2016, 09:14:25 PM
The dumpwallet rpc command exports all of the keys to a human readable text file. You can then use a script to import all of those private keys into your new wallet.