<p>My solution to the question for an encrypted wallet:</p>

<p>walletpassphrase "......." 600
dumpprivkey ......</p>

<p>I made the mistake of including the brackets [ ] when entering the public key after the call dumpprivkey.</p>

CC BY-SA 3.0
2015-09-20T15:05:24.923Z
2015-09-20T15:05:24.923Z
Jeremy Becker
<p>I am still attempting to complete the receipt of a payment in BitCoin-QT. The initial synchronization is beginning to be a hassle so I thought I might get my key and transfer my wallet to Blockchain.info. </p>

<p>I followed the directions in <a href="https://bitcoin.stackexchange.com/questions/7536/how-do-i-export-my-private-keys-from-my-bitcoin-qt-client">How do I export my private keys from my Bitcoin-QT?</a>
to get my private key. All I get back for <code>dumpprivkey[]</code> is:</p>

<blockquote>
  <p>Invalid Bitcoin address (code -5).</p>
</blockquote>

<p>I thought maybe I had the wrong address so I entered <code>listreceivedbyaddress 0 true</code>. </p>

<p>There are only a couple of addresses since I have a new wallet. All of the addresses returned the same "Invalid Bitcoin address" message. What is going on? I know one of these addresses was used to give to an exchange for my new BC. Is it simply because my blockchain is incomplete and the transaction is incomplete?</p>

CC BY-SA 3.0
2015-09-20T02:44:53.000Z
Are you unlocking your wallet before you attempt to use 'dumpprivkey'?
Claris
CC BY-SA 3.0
2015-09-20T05:14:20.593Z
Yes. I unlocked it.
Jeremy Becker
CC BY-SA 3.0
2015-09-20T05:28:21.603Z
Do the addresses you are trying to dump start with a "1"? Not being synchronised will not stop you from doing these actions.
Claris
CC BY-SA 3.0
2015-09-20T13:51:43.680Z
No. I made the mistake of literally applying the instructions from How do I export private keys.... I was using the [ ] when entering the call dumpprivkey. I took those out and everything is fine. Thx.
Jeremy Becker
CC BY-SA 3.0
2015-09-20T14:27:46.680Z
You can post your own answer to this question stating your solution, and click the check mark to accept it. Otherwise, the site will continue to show the question as "unanswered".
Nate Eldredge
<blockchain><bitcoin-core><private-key>
Export Private Keys from Bitcoin-QT
Jeremy Becker
# Export Private Keys from Bitcoin-QT

(Asked by: username_0 on 2015-09-19)

I am still attempting to complete the receipt of a payment in BitCoin-QT. The initial synchronization is beginning to be a hassle so I thought I might get my key and transfer my wallet to Blockchain.info.

I followed the directions in [How do I export my private keys from my Bitcoin-QT?](https://bitcoin.stackexchange.com/questions/7536/how-do-i-export-my-private-keys-from-my-bitcoin-qt-client)
to get my private key. All I get back for `dumpprivkey[]` is:

> Invalid Bitcoin address (code -5).

I thought maybe I had the wrong address so I entered `listreceivedbyaddress 0 true`.

There are only a couple of addresses since I have a new wallet. All of the addresses returned the same "Invalid Bitcoin address" message. What is going on? I know one of these addresses was used to give to an exchange for my new BC. Is it simply because my blockchain is incomplete and the transaction is incomplete?

**Tags:** blockchain, bitcoin-core, private-key

> **Comments:**
> **username_1**: Are you unlocking your wallet before you attempt to use 'dumpprivkey'?  
> **username_0**: Yes. I unlocked it.  
> **username_1**: Do the addresses you are trying to dump start with a "1"? Not being synchronised will not stop you from doing these actions.  
> **username_0**: No. I made the mistake of literally applying the instructions from How do I export private keys.... I was using the [ ] when entering the call dumpprivkey. I took those out and everything is fine. Thx.  
> **username_2**: You can post your own answer to this question stating your solution, and click the check mark to accept it. Otherwise, the site will continue to show the question as "unanswered".  

---

## 1 answers

### Answer by username_0 on 2015-09-20. Score: 4

My solution to the question for an encrypted wallet:

walletpassphrase "......." 600
dumpprivkey ......

I made the mistake of including the brackets [ ] when entering the public key after the call dumpprivkey.


---

