I have my 12 words (mnemonic) and I know that I can get zpriv, xpriv, private keys and anything from that. but when I try to import them to my bitcoin rpc, I can only import them into legacy wallets which are going to deprecate and generates addresses using a derived private key

I searched everywhere, but there is no proper way that I can import my prev wallet into bitcoin rpc.

I already tried sethdseed, importpriv , importmulti

all of them are for legacy wallets which I explained that they are not suitable now. so please provide a working solution to import my hd wallet (mnemonic) into my bitcoin node rpc

update: as "Pieter Wuille" mentioned, I know that there is no straight way for doing this, Im trying to find out should I convert my mnemonic to something (descriptor for example) and import it.

a nodejs example would be grate.


1 Answer 1


Bitcoin Core's wallet does not support any kind of mnemonic seed phrases at all, not in legacy wallets, and not in descriptor wallets.

What is in theory possible is to convert the phrase (using external software) to an output descriptor, and import that into a Bitcoin Core descriptor wallet using the importdescriptors RPC. I don't know if user-friendly software for that exists already, though.

  • how can I convert my mnemonic to descriptor in nodejs ?
    – Godfather
    Apr 21, 2023 at 14:18
  • I read in chainquery.com/bitcoin-cli/importdescriptors that importdescriptors may take an hour to complete. thats so long! there isnt any other way for this? Im trying to build a bitcoin wallet rest system, so this solution wont work for me if it takes 1 hour for every wallet
    – Godfather
    Apr 21, 2023 at 14:21
  • Is this any help: stackoverflow.com/q/69119382/477035 Apr 21, 2023 at 14:22
  • @Godfather As I said, I don't know if any usable software exists right now to do this, I was speaking hypothetically. The simple answer is just that Bitcoin Core does not support mnemonic phrases or seeds; you need to use other wallet software to do what you're looking to do. Apr 21, 2023 at 14:28
  • @pieter-wuille so if I want to create a bitcoin wallet rest service, running a bitcoin node is not a solution. then what is the solution to do such a thing ?
    – Godfather
    Apr 21, 2023 at 14:47

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.