4

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

0

2 Answers 2

5

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.

  1. "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)

2
  • Sorry Asking dumb questions but how can i convert my hdseed to a mnemonic phrase.
    – Erfan
    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. Sep 4, 2020 at 11:38
5

You can't.

Bitcoin Core is not BIP39 compliant.

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.
    – Claris
    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 for hdseed=1.
    – tread
    Dec 10, 2023 at 1:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.