<p>go to help-> debug window -> console</p>

<p>Enter:</p>

<p>walletpassphrase "your walletpassphrase here" 60, to unlock the wallet if its encrypted.</p>

<p>dumpwallet  "filename", will crate a plain text file in same directory where your wallet .dat file is form which you can get your xprv.  </p>

<p>walletlock, to lock your wallet  </p>

<p>Don't forger to erase the file after you get the info. Also if u change your wallet password the xpri will change. </p>

CC BY-SA 3.0
2017-07-10T07:08:45.547Z
Just one correction. dumpwallet "filepath+filename" and after that It will not automatically create text file but You can go to that file -> properties and then change the extension and open it with notepad. Thanks again
DOLLY PATWA
CC BY-SA 3.0
2017-07-09T11:40:58.593Z
2017-07-09T11:40:58.593Z
Ivan
<p>How can I get the master private key of HD wallet bitcoin core satoshi client 0.14.2? Any command for that  on bitcoin core console? Currently I am on Testnet3. </p>

<private-key><private-key-export><private-key-import>
To get the master private key of HD wallet
DOLLY PATWA
# To get the master private key of HD wallet

(Asked by: username_0 on 2017-07-09)

How can I get the master private key of HD wallet bitcoin core satoshi client 0.14.2? Any command for that on bitcoin core console? Currently I am on Testnet3.

**Tags:** private-key, private-key-export, private-key-import


---

## 1 answers

### Answer by username_1 on 2017-07-09. Score: 2 | Accepted answer

go to help-> debug window -> console

Enter:

walletpassphrase "your walletpassphrase here" 60, to unlock the wallet if its encrypted.

dumpwallet "filename", will crate a plain text file in same directory where your wallet .dat file is form which you can get your xprv.

walletlock, to lock your wallet

Don't forger to erase the file after you get the info. Also if u change your wallet password the xpri will change.

> **Comments:**
> **username_0**: Just one correction. dumpwallet "filepath+filename" and after that It will not automatically create text file but You can go to that file -> properties and then change the extension and open it with notepad. Thanks again  

---

