<p>You'll want to use bitcoin-cli to dump the priv key and import it into a lightweight wallet. Here's the command to do this in bitcoin core:</p>

<pre><code>$ bitcoin-cli dumpprivkey &lt;address that contains your coins&gt;
</code></pre>

<p>This should dump out the WIF format private key.</p>

<p>You can import this private key into something like Mycelium which will then have access to your funds. Typically, the wallet will sweep the funds from the address containing your coins to an address controlled by Mycelium. In any case, you'll have full access to your funds after you do this, though at the cost of some miner fees (about 10 cents)</p>

CC BY-SA 3.0
2015-10-12T21:25:03.293Z
I'm trying to run dumpprivkey myAddress from console but the it asks for walletpassphrase before. I've tried tke phrase I use to make transfers but it gives me the error "parse: have" ("have" is the second word I use in my passphrase for transferring funds) so I'm lost, how can I find this walletpassphrase?
Thiago
CC BY-SA 3.0
2015-10-12T23:56:56.560Z
If you have multiple words in your wallet passphrase (or a space somewhere), quote the entire phrase. So `c:\> bitcoin-cli.exe walletpassphrase "<your passphrase>"`.
Jimmy Song
CC BY-SA 3.0
2015-10-13T15:16:38.170Z
I am pasting the entire phrase but it gives me this "parse: have" error. "have" happens to be the second words in the phrase. This happens from the Core console. If I use terminal command "bitcoin-cli dumpprivkey myAddress", then it shows me the message "error: couldn't connect to server"
Thiago
CC BY-SA 3.0
2015-10-14T01:15:19.090Z
@Tom Jimmy means you need to put your passphrase in quotes after you paste it in. So if your passphrase is I have Bitcoins, then you have to put it in quotes, like "I have Bitcoins". The quotes tell the computer to treat all the words inside as a string of characters or letters, not a command that gets parsed.
Digital Galaxy
CC BY-SA 3.0
2015-10-09T23:37:58.197Z
I'm  trying to run this on a command line promp from both Program Files and %appdata% bitcoin locations but I'm getting 'bitcoin-cli' is not recognized as an internal or external command,
operable program or batch file
Thiago
CC BY-SA 3.0
2015-10-11T02:58:44.980Z
bitcoin-cli was added in version 0.9, so if you are using an earlier version you'll need to do this with Bitcoin-QT instead (easiest from the debug console).   If you are on v0.9 or later just make sure you have done a cd to the Bitcoin directory and run it from there (or if Linux, add prefix to load the program from the current path: ./bitcoin-cli ).
Stephen Gornick
CC BY-SA 3.0
2015-10-09T17:27:03.967Z
2015-10-09T17:27:03.967Z
Jimmy Song
<p>I have about $200 in bitcoin but my wallet (Core) won't synchronize the blockchain (it's been doing this for days) since for some reason it got corrupted (As it tends to do say every other month) and now I'm unable to retrieve my money. I want to transfer it to a lightweight wallet so this won't happen anymore but I don't want to lose the money I have locked in there. How do I transfer this money when I can't synchronize to the current state of the blockchain?</p>

<wallet><blockchain><bitcoin-core><synchronization>
How do I retrieve the funds on my Core wallet when I can't synchronize the blockchain?
Thiago
# How do I retrieve the funds on my Core wallet when I can't synchronize the blockchain?

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

I have about $200 in bitcoin but my wallet (Core) won't synchronize the blockchain (it's been doing this for days) since for some reason it got corrupted (As it tends to do say every other month) and now I'm unable to retrieve my money. I want to transfer it to a lightweight wallet so this won't happen anymore but I don't want to lose the money I have locked in there. How do I transfer this money when I can't synchronize to the current state of the blockchain?

**Tags:** wallet, blockchain, bitcoin-core, synchronization


---

## 1 answers

### Answer by username_1 on 2015-10-09. Score: 2 | Accepted answer

You'll want to use bitcoin-cli to dump the priv key and import it into a lightweight wallet. Here's the command to do this in bitcoin core:

```
$ bitcoin-cli dumpprivkey <address that contains your coins>

```

This should dump out the WIF format private key.

You can import this private key into something like Mycelium which will then have access to your funds. Typically, the wallet will sweep the funds from the address containing your coins to an address controlled by Mycelium. In any case, you'll have full access to your funds after you do this, though at the cost of some miner fees (about 10 cents)

> **Comments:**
> **username_0**: I'm  trying to run this on a command line promp from both Program Files and %appdata% bitcoin locations but I'm getting 'bitcoin-cli' is not recognized as an internal or external command, operable program or batch file  
> **username_3**: bitcoin-cli was added in version 0.9, so if you are using an earlier version you'll need to do this with Bitcoin-QT instead (easiest from the debug console).   If you are on v0.9 or later just make sure you have done a cd to the Bitcoin directory and run it from there (or if Linux, add prefix to load the program from the current path: ./bitcoin-cli ).  
> **username_0**: I'm trying to run dumpprivkey myAddress from console but the it asks for walletpassphrase before. I've tried tke phrase I use to make transfers but it gives me the error "parse: have" ("have" is the second word I use in my passphrase for transferring funds) so I'm lost, how can I find this walletpassphrase?  
> **username_1**: If you have multiple words in your wallet passphrase (or a space somewhere), quote the entire phrase. So `c:\> bitcoin-cli.exe walletpassphrase "<your passphrase>"`.  
> **username_0**: I am pasting the entire phrase but it gives me this "parse: have" error. "have" happens to be the second words in the phrase. This happens from the Core console. If I use terminal command "bitcoin-cli dumpprivkey myAddress", then it shows me the message "error: couldn't connect to server"  
> **username_2**: @Tom username_1 means you need to put your passphrase in quotes after you paste it in. So if your passphrase is I have Bitcoins, then you have to put it in quotes, like "I have Bitcoins". The quotes tell the computer to treat all the words inside as a string of characters or letters, not a command that gets parsed.  

---

