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
2 Answers
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 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 key.
- "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)
-
Sorry Asking dumb questions but how can i convert my hdseed to a mnemonic phrase.– ErfanCommented Sep 4, 2020 at 11:12
-
@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. Commented Sep 4, 2020 at 11:38
You can't.
Bitcoin Core is not BIP39 compliant.
-
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.– ClarisCommented Sep 2, 2020 at 13:03
-
One still get and store the hd seed key of a wallet in it's WIF encoding. Use
dumpwallet
and then check the file forhdseed=1
.– treadCommented Dec 10, 2023 at 1:20