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
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)