<p>Bitcoin Core (since 0.13) uses HD after BIP32 with only hardened private key derivation. Exporting the xpub would be useless, because other apps could not derive public keys (hardened derivation requires the xpriv).</p>

<p>Though, you can export the xpriv with <code>dumpwallet &lt;filename&gt;</code> (RPC or Debug Console). But be careful with that.</p>

CC BY-SA 4.0
2022-05-27T18:01:12.133Z
This is an historically accurate answer, even though nowadays dumpwallet might be restricted to only what now are called legacy wallets.
Mercedes
CC BY-SA 3.0
2016-12-17T13:48:46.440Z
2016-12-17T13:48:46.440Z
Jonas Schnelli
<p>I m not getting any such option in bitcoin-core Ui and documentation
<a href="http://bitcoindaily.org/bitcoin-guides/bitcoin-core-tutorial/" rel="nofollow noreferrer">http://bitcoindaily.org/bitcoin-guides/bitcoin-core-tutorial/</a></p>

<bitcoin-core><bitcoind><bip32-hd-wallets><private-key-export>
How to get xpub or mpk(bip32) for my bitcoin core wallet?
Priyanka Agrawal
# How to get xpub or mpk(bip32) for my bitcoin core wallet?

(Asked by: username_0 on 2016-12-17)

I m not getting any such option in bitcoin-core Ui and documentation
<http://bitcoindaily.org/bitcoin-guides/bitcoin-core-tutorial/>

**Tags:** bitcoin-core, bitcoind, bip32-hd-wallets, private-key-export


---

## 1 answers

### Answer by username_1 on 2016-12-17. Score: 12

Bitcoin Core (since 0.13) uses HD after BIP32 with only hardened private key derivation. Exporting the xpub would be useless, because other apps could not derive public keys (hardened derivation requires the xpriv).

Though, you can export the xpriv with `dumpwallet`  (RPC or Debug Console). But be careful with that.

> **Comments:**
> **username_2**: This is an historically accurate answer, even though nowadays dumpwallet might be restricted to only what now are called legacy wallets.  

---

