Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Newar on December 09, 2012, 05:30:49 PM



Title: Export private keys 0.7.1
Post by: Newar on December 09, 2012, 05:30:49 PM
I'm trying to get my private keys. This is on Win 7. The wallet is encrypted.

Code:
dumpprivkey 1xxxxxxxxxxx

returns
Code:
Private key for address 1xxxxxxxxxxxxxx is not known (code -4)

Step to step instructions would be appreciated ;-)


Title: Re: Export private keys 0.7.1
Post by: nobbynobbynoob on December 09, 2012, 05:48:22 PM
Use the command walletpassphrase <passphrase> <time in seconds to keep wallet open> to decrypt the wallet first and then dump the private key. I just tried this and it works!


Title: Re: Export private keys 0.7.1
Post by: Newar on December 09, 2012, 06:48:59 PM
Beauty!

It didn't like the space at the end of the passphrase, so I had to change that.



Title: Re: Export private keys 0.7.1
Post by: nobbynobbynoob on December 09, 2012, 06:59:15 PM
Thanks. :) Incidentally, you can use the command with spaces in passphrases, but you have to enclose the passphrase in " ". (My passphrase doesn't contain any spaces so that doesn't make any difference to me.)