Bitcoin Forum

Other => Beginners & Help => Topic started by: vfilchef on January 28, 2016, 07:43:21 PM



Title: How to dump all private keys
Post by: vfilchef on January 28, 2016, 07:43:21 PM
How to dump all private keys which consist bitcoins.

I know how to dump single private key but when I make transaction change can coming back to one hidden address


Title: Re: How to dump all private keys
Post by: Reynaldo on January 28, 2016, 07:49:04 PM
Which wallet are you using?


Title: Re: How to dump all private keys
Post by: vfilchef on January 28, 2016, 08:02:32 PM
Which wallet are you using?

Bitcoin Core 0.11.2


Title: Re: How to dump all private keys
Post by: shorena on January 28, 2016, 08:16:05 PM
Which wallet are you using?

Bitcoin Core 0.11.2

the command is dumpwallet you can use it from the terminal and you must give it a full path, e.g.

dumpwallet c:\mykeys.txt

If you have set a password you need to unlock the wallet first. The below command will unlock it for 60 seconds.

walletpassphrase PASSWORD 60

They will be exported unencrypted(!) so be careful.


Title: Re: How to dump all private keys
Post by: vfilchef on January 28, 2016, 09:15:44 PM

the command is dumpwallet you can use it from the terminal and you must give it a full path, e.g.

dumpwallet c:\mykeys.txt

If you have set a password you need to unlock the wallet first. The below command will unlock it for 60 seconds.

walletpassphrase PASSWORD 60

They will be exported unencrypted(!) so be careful.

But this command give me all 100 addresses not only this which consist bitcoins.


Title: Re: How to dump all private keys
Post by: shorena on January 28, 2016, 09:19:36 PM
But this command give me all 100 addresses not only this which consist bitcoins.

Yes, you can filter it for "change" and "label" (all used received addresses should have a label).

Code:
# Wallet dump created by Bitcoin v0.9.1.0-g026a939-beta (Tue, 8 Apr 2014 12:04:06 +0200)
# * Created on 2014-04-29T20:46:09Z
# * Best block at time of backup was 227221 (0000000026ede4c10594af8087748507fb06dcd30b8f4f48b9cc463cabc9d767),
#   mined on 2014-04-29T21:15:07Z

cTtefiUaLfXuyBXJBBywSdg8soTEkBNh9yTi1KgoHxUYxt1xZ2aA 2014-02-05T15:44:03Z label=test1 # addr=mnUbTmdAFD5EAg3348Ejmonub7JcWtrMck
cQNY9v93Gyt8KmwygFR59bDhVs3aRDkuT8pKaCBpop82TZ8ND1tH 2014-02-05T16:58:41Z reserve=1 # addr=mp4MmhTp3au21HPRz5waf6YohGumuNnsqT
cNTEPzZH9mjquFFADXe5S3BweNiHLUKD6PvEKEsHApqjX4ZddeU6 2014-02-05T16:58:41Z reserve=1 # addr=n3pdvsxveMBkktjsGJixfSbxacRUwJ9jQW
cTVNtBK7mBi2yc9syEnwbiUpnpGJKohDWzXMeF4tGKAQ7wvomr95 2014-02-05T16:58:41Z change=1 # addr=moQR7i8XM4rSGoNwEsw3h4YEuduuP6mxw7
cNCD679B4xi17jb4XeLpbRbZCbYUugptD7dCtUTfSU4KPuK2DyKT 2014-02-05T16:58:41Z reserve=1 # addr=mq8fzjxxVbAKxUGPwaSSo3C4WaUxdzfw3C


Title: Re: How to dump all private keys
Post by: vfilchef on January 28, 2016, 10:14:03 PM
But this command give me all 100 addresses not only this which consist bitcoins.

Yes, you can filter it for "change" and "label" (all used received addresses should have a label).

Code:
# Wallet dump created by Bitcoin v0.9.1.0-g026a939-beta (Tue, 8 Apr 2014 12:04:06 +0200)
# * Created on 2014-04-29T20:46:09Z
# * Best block at time of backup was 227221 (0000000026ede4c10594af8087748507fb06dcd30b8f4f48b9cc463cabc9d767),
#   mined on 2014-04-29T21:15:07Z

cTtefiUaLfXuyBXJBBywSdg8soTEkBNh9yTi1KgoHxUYxt1xZ2aA 2014-02-05T15:44:03Z label=test1 # addr=mnUbTmdAFD5EAg3348Ejmonub7JcWtrMck
cQNY9v93Gyt8KmwygFR59bDhVs3aRDkuT8pKaCBpop82TZ8ND1tH 2014-02-05T16:58:41Z reserve=1 # addr=mp4MmhTp3au21HPRz5waf6YohGumuNnsqT
cNTEPzZH9mjquFFADXe5S3BweNiHLUKD6PvEKEsHApqjX4ZddeU6 2014-02-05T16:58:41Z reserve=1 # addr=n3pdvsxveMBkktjsGJixfSbxacRUwJ9jQW
cTVNtBK7mBi2yc9syEnwbiUpnpGJKohDWzXMeF4tGKAQ7wvomr95 2014-02-05T16:58:41Z change=1 # addr=moQR7i8XM4rSGoNwEsw3h4YEuduuP6mxw7
cNCD679B4xi17jb4XeLpbRbZCbYUugptD7dCtUTfSU4KPuK2DyKT 2014-02-05T16:58:41Z reserve=1 # addr=mq8fzjxxVbAKxUGPwaSSo3C4WaUxdzfw3C

Thank you very mach I hope this is addresses not from your wallet  ;D
So only used addresses have "label" and "change" & "reserve"addresses is not important - right?


Title: Re: How to dump all private keys
Post by: achow101 on January 28, 2016, 10:42:45 PM
Thank you very mach I hope this is addresses not from your wallet  ;D
The private keys that shorena posted are for testnet, so they don't matter.

So only used addresses have "label" and "change" & "reserve"addresses is not important - right?
Those addresses are still important. After you send from you wallet, the change addresses are for your change and the reserve addresses are where you get new addresses from. When you click on "New" in the receiving addresses window, you are getting an address from the list of reserve addresses. Change addresses will also be able to spend Bitcoin as Bitcoin Core uses a new change address for the change of every transaction.


Title: Re: How to dump all private keys
Post by: vfilchef on January 28, 2016, 11:00:53 PM
Thank you very mach I hope this is addresses not from your wallet  ;D
The private keys that shorena posted are for testnet, so they don't matter.

So only used addresses have "label" and "change" & "reserve"addresses is not important - right?
Those addresses are still important. After you send from you wallet, the change addresses are for your change and the reserve addresses are where you get new addresses from. When you click on "New" in the receiving addresses window, you are getting an address from the list of reserve addresses. Change addresses will also be able to spend Bitcoin as Bitcoin Core uses a new change address for the change of every transaction.

Thank you @knightdk to clear for me - I like to migrate to another wallet like Electrum so for me was important to know
So I can filter only "label"&"change"


Title: Re: How to dump all private keys
Post by: achow101 on January 28, 2016, 11:17:45 PM
Thank you very mach I hope this is addresses not from your wallet  ;D
The private keys that shorena posted are for testnet, so they don't matter.

So only used addresses have "label" and "change" & "reserve"addresses is not important - right?
Those addresses are still important. After you send from you wallet, the change addresses are for your change and the reserve addresses are where you get new addresses from. When you click on "New" in the receiving addresses window, you are getting an address from the list of reserve addresses. Change addresses will also be able to spend Bitcoin as Bitcoin Core uses a new change address for the change of every transaction.

Thank you @knightdk to clear for me - I like to migrate to another wallet like Electrum so for me was important to know
So I can filter only "label"&"change"
Yes. Those will be the only ones that actual contain your coins. The reserve ones will be empty.