I'm trying to import an electrum hd wallet into bitcoin core with the transaction logs included. I need to import a single address or the entire wallet, whichever is easier to do. I don't want to send funds from electrum wallet to bitcoin core wallet.
I have tried to follow the procedure in this link but it does not work for me.
https://bitcointalk.org/index.php?topic=5320198.msg63657719#msg63657719bitcoin-cli importprivkey "privatekey" "fromelectrum"
error code: -4
error message:
This type of wallet does not support this command
According to the error it gives, it seems that you have to create a specific type of wallet in bitcoin core, but in what way would it be?
Bitcoin Core v23.2
Updated with the solution:According to the error it gives, it seems that you have to create a specific type of wallet in bitcoin core, but in what way would it be?
Create a non descriptor wallet. Add "false" at the end of your import command to avoid a re-scan. You only need a re-scan after the last import.
We create the wallet without a descriptorbitcoin-cli -named createwallet wallet_name="fromelectrum" descriptors=false
We import the privatekeybitcoin-cli importprivkey "privatekey"
Thanks to Knight Hider!!!