Importing privkey from paper wallets only works with legacy wallets

6 replies 304 views
Posts: 7 · Reputation: 81
#1Dec 8, 2025, 02:32 AM
I'm running Bitcoin Core Qt v26 on Ubuntu, and I'm trying to use the importprivkey command to bring in a key from a paper wallet through the console. But I'm hitting a wall with this error: "Only legacy wallets are supported by this command (code -4)." I've followed the same steps like I did before, probably with an older wallet version. From what I've dug up, it seems like it's now using descriptor wallets which don't work for this, right? So, I'm looking for some guidance on how I can manage this import with v26.
6 Reply Quote Share
seed_vaultFull Member
Posts: 71 · Reputation: 451
#2Dec 8, 2025, 04:21 AM
Create a new legacy wallet (non descriptor) and try again.  Use the console and enter the following command:
6 Reply Quote Share
Posts: 7 · Reputation: 81
#3Dec 8, 2025, 06:28 AM
Are you sure this works with v26 since the option to uncheck descriptor wallets during creation in the gui was removed after v25? Anyways I tried the command and got this error, “Error parsing JSON: blank=true”
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#4Dec 8, 2025, 10:27 AM
I see that you've posted this as well. I have replied to your PM, the content follows: Yes. The difference with the old command is it specifically derive Native SegWit address (wpkh) based from the given key. If you want all three address types, replace it with "combo(L…privkey)". Also, the checksum "#z0cazjry" will change so re-calculate it with getdescriptorinfo "combo(L…privkey)" command.
5 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#5Dec 8, 2025, 03:58 PM
Descriptor wallets should add one command to import a private key. It's too complicated now. As an alternative: I'd use Electrum to sweep the private key:
4 Reply Quote Share
yield_forkFull Member
Posts: 162 · Reputation: 728
#6Dec 8, 2025, 08:32 PM
Follow this guide to import the desired private key using the new importdescriptors command... there are all the detailed instructions... [HOW-TO] Import privkeys into a Bitcoin Core descriptor wallet If you still find it complicated, perhaps the easiest way would be to download v23 or lower of bitcoin core where legacy wallets still appear as an option when creating a new wallet. You can also import an entire HD wallet into bitcoin core, everything is descriptor now.
0 Reply Quote Share
Posts: 7 · Reputation: 81
#7Dec 8, 2025, 10:58 PM
Followed the steps in your thread and it work. Always scary though. Thanks!
3 Reply Quote Share

Related topics