<h1>How to export private keys from Bitcoin Core</h1>

<p>In Bitcoin Core, you can use the <code>dumpprivkey</code> command.</p>

<p>Once you have your private key, guard it very carefully keeping it very secure and, do the following in Bitcoin Core to gey your private key (once for every individual address):</p>

<ol>
<li>Open Bitcoin Core.</li>
<li>Go to Help --> Debug.</li>
<li>Go to the Console tab.</li>
<li>type: <code>dumpprivkey "{address}"</code></li>
<li>Do step 4 once for each address with BTC in your Bitcoin Core wallet.</li>
<li>Write down your private key exactly on paper only for security, or use copy and paste. Do not ever save the private key anywhere on a phone or computer.</li>
</ol>

<p>Done. Note that you do not need to wait for Bitcoin Core to update before exporting your private key.</p>

<blockquote>
  <h2>Usage:</h2>
  
  <p>>dumpprivkey "address"</p>
  
  <p>Reveals the private key corresponding to 'address'.<br>
  Then the importprivkey can be used with this output</p>
  
  <p>Arguments:<br>
  1. "address"   (string, required) The bitcoin address for the private key</p>
  
  <p>Result:<br>
  "key"                (string) The private key</p>
  
  <p>Examples:<br>
  > bitcoin-cli dumpprivkey "myaddress"<br>
  > bitcoin-cli importprivkey "mykey"</p>
</blockquote>

<h2>Importing private keys into Electrum</h2>

<p>Then, you can import your private keys into Electrum.</p>

<ol>
<li>Open Electrum and go to Wallet --> Private Keys --> Import</li>
<li>Exactly fill in all your private keys, one private key per line. Press <kbd>enter</kbd> for a new line.</li>
<li>Click on Import.</li>
<li>Done.</li>
</ol>

<p>Electrum will update with the balance for all of your imported addresses.</p>

<p>Note: If you just do not have enough HDD storage for Bitcoin Core you can enable <code>prune={MB&gt;550}</code> in your <code>bitcoin.conf</code> file to reduce the file storage requirements for the blockchain, accessible from Settings --> Options.</p>

CC BY-SA 3.0
2018-03-06T02:46:45.170Z
2018-03-06T02:46:45.170Z
Willtech
<p>Every wallet can create it's own way of storing data. There's no protocol in bitcoin,that defines the way, how a wallet is structured. In your case it might be best to extract the private key, and load it into Electrum, like here:</p>

<p><a href="http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients" rel="nofollow noreferrer">http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients</a></p>

CC BY-SA 3.0
2017-07-05T06:15:40.517Z
2017-07-05T06:15:40.517Z
pebwindkraft
<p>I am totally new to bitcoin. I have google'd this a lot now. I created a wallet with Bitcoin Core GUI and encrypted it (<code>settings -&gt; encrypt wallet...</code>). Then I took a receiving address from the wallet (<code>file -&gt; receiving addresses...</code>) and sent some bitcoins to that address from an exchange (bitstamp). I confirmed with <a href="https://blockchain.info/" rel="noreferrer">https://blockchain.info/</a> that the bitcoins have arrived to that address.</p>

<p>Now I want to spend the coins. I can't use Bitcoin Core because I don't have the resources to download the entire blockchain, so I want to use Electrum for sending coins. </p>

<p>How do I import an encrypted wallet.dat created with Bitcoin Core to Electrum and send coins? If I try to open the wallet.dat with Electrum then I get <code>Error cannote read wallet file</code></p>

CC BY-SA 3.0
2017-02-19T18:32:46.043Z
related: [Can I import my wallet from my bitcoin core for electrum?](http://bitcoin.stackexchange.com/q/36443/5406)
Murch
<bitcoin-core><electrum>
Send coins with Electrum from encrypted wallet created with Bitcoin Core
gibs
# Send coins with Electrum from encrypted wallet created with Bitcoin Core

(Asked by: username_0 on 2017-02-19)

I am totally new to bitcoin. I have google'd this a lot now. I created a wallet with Bitcoin Core GUI and encrypted it (`settings -> encrypt wallet...`). Then I took a receiving address from the wallet (`file -> receiving addresses...`) and sent some bitcoins to that address from an exchange (bitstamp). I confirmed with <https://blockchain.info/> that the bitcoins have arrived to that address.

Now I want to spend the coins. I can't use Bitcoin Core because I don't have the resources to download the entire blockchain, so I want to use Electrum for sending coins.

How do I import an encrypted wallet.dat created with Bitcoin Core to Electrum and send coins? If I try to open the wallet.dat with Electrum then I get `Error cannote read wallet file`

**Tags:** bitcoin-core, electrum

> **Comments:**
> **username_1**: related: [Can I import my wallet from my bitcoin core for electrum?](http://bitcoin.stackexchange.com/q/36443/5406)  

---

## 2 answers

### Answer by username_2 on 2018-03-06. Score: 1

# How to export private keys from Bitcoin Core

In Bitcoin Core, you can use the `dumpprivkey` command.

Once you have your private key, guard it very carefully keeping it very secure and, do the following in Bitcoin Core to gey your private key (once for every individual address):

1. Open Bitcoin Core.
2. Go to Help --> Debug.
3. Go to the Console tab.
4. type: `dumpprivkey "{address}"`
5. Do step 4 once for each address with BTC in your Bitcoin Core wallet.
6. Write down your private key exactly on paper only for security, or use copy and paste. Do not ever save the private key anywhere on a phone or computer.

Done. Note that you do not need to wait for Bitcoin Core to update before exporting your private key.

> ## Usage:
>
> >dumpprivkey "address"
>
> Reveals the private key corresponding to 'address'.  
> Then the importprivkey can be used with this output
>
> Arguments:  
> 1. "address" (string, required) The bitcoin address for the private key
>
> Result:  
> "key" (string) The private key
>
> Examples:  
> > bitcoin-cli dumpprivkey "myaddress"  
> > bitcoin-cli importprivkey "mykey"

## Importing private keys into Electrum

Then, you can import your private keys into Electrum.

1. Open Electrum and go to Wallet --> Private Keys --> Import
2. Exactly fill in all your private keys, one private key per line. Press `enter` for a new line.
3. Click on Import.
4. Done.

Electrum will update with the balance for all of your imported addresses.

Note: If you just do not have enough HDD storage for Bitcoin Core you can enable `prune={MB>550}` in your `bitcoin.conf` file to reduce the file storage requirements for the blockchain, accessible from Settings --> Options.


---

### Answer by username_3 on 2017-07-05. Score: 1

Every wallet can create it's own way of storing data. There's no protocol in bitcoin,that defines the way, how a wallet is structured. In your case it might be best to extract the private key, and load it into Electrum, like here:

<http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients>


---

