Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

Trying to use this posted method:

To export a private key from your Satoshi bitcoin-qt client:

launch your bitcoin client as usual and wait for it to load the blockchain and start up
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase "your walletpassphrase here" 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock

I do not understand what "your walletpassphrase here" means. I do not have a wallet pass phrase to the best of my knowledge.

Also, I am a bit of an amateur at this and I still don't understand the "your public key here"..... is that the address that corresponds to your wallet?

Trying to export the private key to another wallet because the bitcoin wallet has taken 2 days to synch and is still not done.

Any help would be very appreciated.

share|improve this question
    
Any help on how to do this for client version .4? I know it had a security hole, which is why I never upgraded (I forgot my password) –  user9715 Nov 30 '13 at 7:59
    
What does it mean: (I folowed above instructions ) Invalid Bitcoin address (code -5) already solved the problem mercie –  user10580 Dec 10 '13 at 17:29

3 Answers 3

If you never encrypted your wallet, then you don't need to do the "walletpassphrase" command. That's only needed to unlock the wallet if it is protected with passphrase encryption.

As far as the public key for dumpprivkey, that is asking what Bitcoin address you want the private key for.

To get the list of Bitcoin addresses in your wallet, you can use:

listreceivedbyaddress 0 true
share|improve this answer
2  
This is not good enough, as I found today. I believe this does not list internal change addresses that bitcoind creates when sending outgoing transactions. Starting from bitcoind 0.7, you can use listaddressgroupings, which lists all addresses. –  ripper234 Oct 19 '13 at 14:15

I believe that listreceivedbyaddress 0 true does not list the change addresses that are created as part of the normal client operation.

Starting from bitcoin 0.7, you should use bitcoind listaddressgroupings to get all the addresses, and then follow up as usual with dumpprivkey.

share|improve this answer

After you use the console command to export your private key you'll also need to execute another console command to import it. Both commands are listed below.

Command to export your private key: dumpprivkey YourBitCoinPublicAddress

Command to import your private key: importprivkey YourBitCoinPrivateKey

When I was trying to figure this out I found a list of all Bitcoin console commands. It's below for your reference. All of the console commands can be executed by opening up your Bitcoin wallet software, click on help, then Console.

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.