Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: hatakeyudu on September 13, 2020, 05:18:07 AM



Title: Need help to dump my private key on Bitcoin Core
Post by: hatakeyudu on September 13, 2020, 05:18:07 AM
I know that the private key is important. Lose it, I will lose my bitcoin.

I download Bitcoin Core, install it and get my wallet but I don't know how to dump my private key in my wallet.

I search and see a command dumpprivkey address, it can be used but if I have 100 bitcoin addresses and each one have bitcoin, what to do?

Use the command 100 times is not a good idea because with the 100 times I can make mistakes.

Thank you and happy weekend.


Title: Re: Need help to dump my private key on Bitcoin Core
Post by: ranochigo on September 13, 2020, 05:22:11 AM
Dumpwallet is what you're looking for.

Go to command line, unlock your wallet if necessary and then use this command:
Code:
dumpwallet "[INSERT DIRECTORY HERE]/wallet.txt"

For my case, I did
Code:
dumpwallet "C:/Users/ranochigo/wallet.txt"


Title: Re: Need help to dump my private key on Bitcoin Core
Post by: Abdussamad on September 19, 2020, 02:32:31 PM
if you want to backup your wallet use the command under the file menu. don't go messing with individual private keys.


Title: Re: Need help to dump my private key on Bitcoin Core
Post by: darkv0rt3x on September 21, 2020, 03:22:58 PM
I know that the private key is important. Lose it, I will lose my bitcoin.

I download Bitcoin Core, install it and get my wallet but I don't know how to dump my private key in my wallet.

I search and see a command dumpprivkey address, it can be used but if I have 100 bitcoin addresses and each one have bitcoin, what to do?

Use the command 100 times is not a good idea because with the 100 times I can make mistakes.

Thank you and happy weekend.

If you really want to store all your 100 private keys, you can write a simple script to run the command and send to a file each address and the corresponding PK. I think that can be done.

Or, in a more weird fashion, you can do it manually, like 10 addresses today, 10 addresses tomorrow, etc, but that's a PITA.