Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Uniex on August 04, 2017, 04:04:53 PM



Title: How to dump all private keys from wallet.dat ?
Post by: Uniex on August 04, 2017, 04:04:53 PM
I need to dump all private keys from wallet.dat because it has too much addresses, so I cant use dumpprivkey for each address


Title: Re: How to dump all private keys from wallet.dat ?
Post by: jackg on August 04, 2017, 05:55:43 PM
I need to dump all private keys from wallet.dat because it has too much addresses, so I cant use dumpprivkey for each address

Can you not make a new wallet, send all of the coins from your first wallet to the second and then just delete the old wallet.dat?
If you have fewer private keys to import than expoert, then that might be a good solution for it.


Title: Re: How to dump all private keys from wallet.dat ?
Post by: Uniex on August 05, 2017, 07:25:16 AM
I need to dump all private keys from wallet.dat because it has too much addresses, so I cant use dumpprivkey for each address

Can you not make a new wallet, send all of the coins from your first wallet to the second and then just delete the old wallet.dat?
If you have fewer private keys to import than expoert, then that might be a good solution for it.

Thats idea, but I need exactly what I need - extract all private keys from wallet.dat :)


Title: Re: How to dump all private keys from wallet.dat ?
Post by: ranochigo on August 05, 2017, 07:52:22 AM
To export all the keys, you have to use dumpwallet command. The command will export all your keys and your master private key which can generate any future address unencrypted so use it with care.

1.Go to help>debug window>console.
2. Key in this if you have your wallet encrypted:
Code:
walletpassphrase PASSWORDHERE 600
replacing the relevant parts.
3. Create a blank txt file in whatever directory you want and name it walletdump.txt. For example, I stored mine in C:/ with the name walletdump.txt.
4. Key in this:
Code:
dumpwallet C:/walletdump.txt
. The command will export every of your private keys into that text file. You can change the directory if you stored your text file on another directory.


Title: Re: How to dump all private keys from wallet.dat ?
Post by: khalidxpert on August 19, 2020, 12:22:43 PM
I want to know if want to make any specific wallet address as dump key how to do that


Title: Re: How to dump all private keys from wallet.dat ?
Post by: PawGo on August 19, 2020, 12:24:20 PM
I want to know if want to make any specific wallet address as dump key how to do that

dumpprivkey "address"