<p>Bitcoin Core's wallet does not support any kind of mnemonic seed phrases at all, not in legacy wallets, and not in descriptor wallets.</p>
<p>What is in theory possible is to convert the phrase (using external software) to an <a href="https://github.com/bitcoin/bitcoin/blob/v24.0.1/doc/descriptors.md" rel="nofollow noreferrer"><em>output descriptor</em></a>, and import that into a Bitcoin Core descriptor wallet using the <code>importdescriptors</code> RPC. I don't know if user-friendly software for that exists already, though.</p>

CC BY-SA 4.0
2023-04-21T14:18:07.713Z
how can I convert my mnemonic to descriptor in nodejs ?
Godfather
CC BY-SA 4.0
2023-04-21T14:21:36.703Z
I read in https://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
CC BY-SA 4.0
2023-04-21T14:22:25.987Z
Is this any help: https://stackoverflow.com/q/69119382/477035
RedGrittyBrick
CC BY-SA 4.0
2023-04-21T14:28:51.063Z
@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.
Pieter Wuille
CC BY-SA 4.0
2023-04-21T14:47:45.177Z
@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
CC BY-SA 4.0
2023-04-21T14:50:40.400Z
@Godfather Run a Bitcoin node by all means, just don't use Bitcoin Core's built-in wallet. Instead, run whatever wallet software that implements the features you need, and connect it to the Bitcoin node.
Pieter Wuille
CC BY-SA 4.0
2023-04-21T15:02:07.890Z
@PieterWuille thanks a lot for the Idea. do you know any 3rd party package or libraries for this in nodejs? or anything with a SDK than I can use in nodejs?
Godfather
CC BY-SA 4.0
2023-04-21T17:08:15.783Z
I'm not familiar with the nodejs/js world.
Pieter Wuille
CC BY-SA 4.0
2023-04-20T18:27:12.973Z
2023-04-20T18:27:12.973Z
Pieter Wuille
<p>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</p>
<p>I searched everywhere, but there is no proper way that I can import my prev wallet into bitcoin rpc.</p>
<p>I already tried <code>sethdseed</code>, <code>importpriv</code> , <code>importmulti</code></p>
<p>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</p>
<p>update:
as &quot;Pieter Wuille&quot; 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.</p>
<p>a nodejs example would be grate.</p>
<p>tnx</p>

<bitcoind><bitcoin-cli><mnemonic-seed><wallet-import>
use mnemonic in bitcoin rpc using bitcoin cli with none legacy wallets
Godfather
# use mnemonic in bitcoin rpc using bitcoin cli with none legacy wallets

(Asked by: username_0 on 2023-04-20)

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 "username_1 username_1" 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.

tnx

**Tags:** bitcoind, bitcoin-cli, mnemonic-seed, wallet-import


---

## 1 answers

### Answer by username_1 on 2023-04-20. Score: 4

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*](https://github.com/bitcoin/bitcoin/blob/v24.0.1/doc/descriptors.md), 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.

> **Comments:**
> **username_0**: how can I convert my mnemonic to descriptor in nodejs ?  
> **username_0**: I read in https://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  
> **username_2**: Is this any help: https://stackoverflow.com/q/69119382/477035  
> **username_1**: @username_0 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.  
> **username_0**: @username_1-username_1 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 ?  
> **username_1**: @username_0 Run a Bitcoin node by all means, just don't use Bitcoin Core's built-in wallet. Instead, run whatever wallet software that implements the features you need, and connect it to the Bitcoin node.  
> **username_0**: @username_1 thanks a lot for the Idea. do you know any 3rd party package or libraries for this in nodejs? or anything with a SDK than I can use in nodejs?  
> **username_1**: I'm not familiar with the nodejs/js world.  

---

