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.
tnx