<p>It does not have one.</p>

<p>Bitcoin Core uses hardened derivation, so there is no way to compute the addresses it will use externally.</p>

<p>Support for that will likely be added in upcoming versions, but likely won't be the default (there are security risks when using non-hardened derivation).</p>

CC BY-SA 4.0
2024-05-18T22:22:52.363Z
Is your answer still the case? I see an `xprv`… line in a `dumpwallet` file.
Geremia
CC BY-SA 4.0
2024-05-18T22:31:00.403Z
In a legacy wallet (as your wallet is, because `dumpwallet` only works on legacy wallets) it is still the case. In the newer descriptor wallets, it is possible to export its xpubs (in the form of a descriptor), using the `listdescriptors` RPC.
Pieter Wuille
CC BY-SA 4.0
2024-05-18T22:39:40.547Z
If I import the `xprv` into another client, will that client not know the child private keys?
Geremia
CC BY-SA 4.0
2019-04-18T18:09:59.347Z
2019-04-18T18:09:59.347Z
Pieter Wuille
<p>How do I export my HD wallet's Xpubkey in Bitcoin Core?</p>

<p>Do I construct it using the value of "<a href="https://bitcoin.org/en/glossary/hd-wallet-seed" rel="nofollow noreferrer">hdseedid</a>" returned by <a href="https://bitcoin.org/en/developer-reference#getwalletinfo" rel="nofollow noreferrer"><code>getwalletinfo</code></a>?</p>

<bitcoin-core><bip32-hd-wallets><xpub>
Export Xpubkey from Bitcoin Core
Geremia
# Export Xpubkey from Bitcoin Core

(Asked by: username_0 on 2019-04-18)

How do I export my HD wallet's Xpubkey in Bitcoin Core?

Do I construct it using the value of "[hdseedid](https://bitcoin.org/en/glossary/hd-wallet-seed)" returned by [`getwalletinfo`](https://bitcoin.org/en/developer-reference#getwalletinfo)?

**Tags:** bitcoin-core, bip32-hd-wallets, xpub


---

## 1 answers

### Answer by username_1 on 2019-04-18. Score: 6 | Accepted answer

It does not have one.

Bitcoin Core uses hardened derivation, so there is no way to compute the addresses it will use externally.

Support for that will likely be added in upcoming versions, but likely won't be the default (there are security risks when using non-hardened derivation).

> **Comments:**
> **username_0**: Is your answer still the case? I see an `xprv`… line in a `dumpwallet` file.  
> **username_1**: In a legacy wallet (as your wallet is, because `dumpwallet` only works on legacy wallets) it is still the case. In the newer descriptor wallets, it is possible to export its xpubs (in the form of a descriptor), using the `listdescriptors` RPC.  
> **username_0**: If I import the `xprv` into another client, will that client not know the child private keys?  

---

