<p>You are looking for the <code>dumpwallet</code> command.     </p>

<p>While in regtest open the console a/k/a debug window, and type:<br>
<code>dumpwallet "C:\myfolder\dump.txt"</code></p>

<p>This will create a text file with all your keys. At the top you will see your extended master private key. And if you are looking for your HD seed, do a control+f for hdseed, you should find a key with the label <code>hdseed=1</code>.  </p>

<p><a href="https://bitcoincore.org/en/doc/0.18.0/rpc/wallet/sethdseed/" rel="nofollow noreferrer">https://bitcoincore.org/en/doc/0.18.0/rpc/wallet/sethdseed/</a></p>

CC BY-SA 4.0
2019-11-12T02:21:30.817Z
2019-11-12T02:21:30.817Z
m1xolyd1an
<p>I am doing some tests for an application that signs Bitcoin transactions. I already downloaded the binary files <code>bitcoin-cli</code>,<code>bitcoind</code> and <code>bitcoin-wallet</code> from <a href="https://bitcoin.org/en/download" rel="nofollow noreferrer">bitcoin.org</a>. I need to know that the seed of the wallet created by regtest. It is available when the <code>bitcoin-wallet -regtest info</code> command returns:</p>

<pre><code>Wallet info                                                                             │
===========                                                                             │
Encrypted: no                                                                           │
HD (hd seed available): yes                                                             │
Keypool Size: 1999                                                                      │
Transactions: 103                                                                       │
Address Book: 2
</code></pre>

<p>I need that seed for run recovery on my app and check if it sign correctly a Bitcoin transaction.</p>

<p><strong>Thanks in advance</strong></p>

<wallet><regtest><seed>
Get Seed from wallet on regtest mode
wic
# Get Seed from wallet on regtest mode

(Asked by: username_0 on 2019-11-08)

I am doing some tests for an application that signs Bitcoin transactions. I already downloaded the binary files bitcoin-cli,bitcoind and bitcoin-wallet from bitcoin.org. I need to know that the seed of the wallet created by regtest. It is available when the bitcoin-wallet -regtest info command returns:
Wallet info                                                                             │
===========                                                                             │
Encrypted: no                                                                           │
HD (hd seed available): yes                                                             │
Keypool Size: 1999                                                                      │
Transactions: 103                                                                       │
Address Book: 2

I need that seed for run recovery on my app and check if it sign correctly a Bitcoin transaction.
Thanks in advance

**Tags:** wallet, regtest, seed


---

## 1 answers

### Answer by username_1 on 2019-11-12. Score: 0 | Accepted answer

You are looking for the `dumpwallet` command.

While in regtest open the console a/k/a debug window, and type:  
`dumpwallet "C:\myfolder\dump.txt"`

This will create a text file with all your keys. At the top you will see your extended master private key. And if you are looking for your HD seed, do a control+f for hdseed, you should find a key with the label `hdseed=1`.

<https://bitcoincore.org/en/doc/0.18.0/rpc/wallet/sethdseed/>


---

