<p>You can't.</p>
<p>Bitcoin Core is not BIP39 compliant.</p>

CC BY-SA 4.0
2020-09-02T13:03:29.673Z
To note, this is not a bad thing. Bitcoin Core is also not compliant with regulations on PPE, but that doesn't not taint it as a software product.
Claris
CC BY-SA 4.0
2023-12-10T01:20:01.737Z
One still get and store the hd seed key of a wallet in it's WIF encoding. Use `dumpwallet` and then check the file for `hdseed=1`.
tread
CC BY-SA 4.0
2020-08-31T09:50:12.520Z
2020-08-31T09:50:12.520Z
Raghav Sood
<blockquote>
<p><strong>How to get my 24 word seed using bitcoin-cli</strong></p>
</blockquote>
<p>You write about <em>getting</em> but your commands are about <em>setting</em>. This is confusing.</p>
<p>You can't <strong>get</strong> a seed-phrase from Bitcoin-core.</p>
<p>You can use the <a href="https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/sethdseed/" rel="nofollow noreferrer">sethdseed</a> function to <em>&quot;Set or generate a new HD wallet seed.&quot;</em> this marks any existing private keys as inactive (which may or may not be what you want).</p>
<p>Note that an <code>HD seed</code> and a (24 word) <code>seed phrase</code> are different things.</p>
<hr />
<blockquote>
<p><strong>I've tried: bitcoin-cli sethdseed 'word1 word2 ...' but i got invalid private key.</strong></p>
</blockquote>
<p>I think that may be because the second argument is not a seed phrase but a <a href="https://en.bitcoin.it/wiki/Wallet_import_format" rel="nofollow noreferrer">WIF</a> key.</p>
<blockquote>
<ol start="2">
<li>&quot;seed&quot;               (string, optional) The WIF private key to use as the new HD seed;</li>
</ol>
</blockquote>
<hr />
<p>Related questions with useful answers (assuming you're trying to get seed-words out of Bitcoin Core because you think thats whats needed to transfer to another wallet that uses them)</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/12763/13866">How can I transfer a Bitcoin-qt wallet to Electrum?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/74031/13866">How To Transfer Coins From Bitcoin Core to Electrum to avoid Sync Process?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/88195/13866">Having trouble transfering private keys from Bitcoin Core to Electrum, for want of not having to wait for sync</a></li>
</ul>

CC BY-SA 4.0
2020-09-04T11:12:54.377Z
Sorry Asking dumb questions but how can i convert my hdseed to a mnemonic phrase.
Erfan
CC BY-SA 4.0
2020-09-04T11:38:36.007Z
@Erfan. There's no need. Instead people changing from Bitcoin core to another wallet usually export the private key and tell the new wallet to sweep the key.
RedGrittyBrick
CC BY-SA 4.0
2020-08-31T10:42:59.650Z
2020-09-04T11:52:32.190Z
2020-09-04T11:52:32.190Z
RedGrittyBrick
<p>I've tried:
bitcoin-cli sethdseed 'word1 word2 ...'
but i got invalid private key.
please help me getting my 24 word seed using bitcoin core</p>

<mnemonic-seed><seed>
How to get my 24 word seed using bitcoin-cli
Erfan
# How to get my 24 word seed using bitcoin-cli

(Asked by: username_0 on 2020-08-31)

I've tried:
bitcoin-cli sethdseed 'word1 word2 ...'
but i got invalid private key.
please help me getting my 24 word seed using bitcoin core

**Tags:** mnemonic-seed, seed


---

## 2 answers

### Answer by username_4 on 2020-08-31. Score: 5 | Accepted answer

> **How to get my 24 word seed using bitcoin-cli**

You write about *getting* but your commands are about *setting*. This is confusing.

You can't **get** a seed-phrase from Bitcoin-core.

You can use the [sethdseed](https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/sethdseed/) function to *"Set or generate a new HD wallet seed."* this marks any existing private keys as inactive (which may or may not be what you want).

Note that an `HD seed` and a (24 word) `seed phrase` are different things.

---

> **I've tried: bitcoin-cli sethdseed 'word1 word2 ...' but i got invalid private key.**

I think that may be because the second argument is not a seed phrase but a [WIF](https://en.bitcoin.it/wiki/Wallet_import_format) key.

> 2. "seed" (string, optional) The WIF private key to use as the new HD seed;

---

Related questions with useful answers (assuming you're trying to get seed-words out of Bitcoin Core because you think thats whats needed to transfer to another wallet that uses them)

* [How can I transfer a Bitcoin-qt wallet to Electrum?](https://bitcoin.stackexchange.com/q/12763/13866)
* [How To Transfer Coins From Bitcoin Core to Electrum to avoid Sync Process?](https://bitcoin.stackexchange.com/q/74031/13866)
* [Having trouble transfering private keys from Bitcoin Core to Electrum, for want of not having to wait for sync](https://bitcoin.stackexchange.com/q/88195/13866)

> **Comments:**
> **username_0**: Sorry Asking dumb questions but how can i convert my hdseed to a mnemonic phrase.  
> **username_4**: @username_0. There's no need. Instead people changing from Bitcoin core to another wallet usually export the private key and tell the new wallet to sweep the key.  

---

### Answer by username_1 on 2020-08-31. Score: 5

You can't.

Bitcoin Core is not BIP39 compliant.

> **Comments:**
> **username_2**: To note, this is not a bad thing. Bitcoin Core is also not compliant with regulations on PPE, but that doesn't not taint it as a software product.  
> **username_3**: One still get and store the hd seed key of a wallet in it's WIF encoding. Use `dumpwallet` and then check the file for `hdseed=1`.  

---

