I do not know the best way to carry out this on the GUI, however with a purpose to import a WIF non-public key on a contemporary Bitcoin Core it’s important to use a descriptor. So as to recuperate from a backup, you almost certainly need to use the combo()
descriptor.
Right here is an instance with an instance WIF non-public key: cSWVo8YMehg6STxqw6xGgmMJE6Ac6RCJ7owcrBZRAT7QANtyAAEj
(it is a testnet-encoded WIF non-public key on objective, yours might be completely different). There’s most probably an identical movement on the graphical interface, however failing which you can at all times use the command line (or the command enter on the GUI).
First craft a combo descriptor from this non-public key and get its checksum:
getdescriptorinfo 'combo(cSWVo8YMehg6STxqw6xGgmMJE6Ac6RCJ7owcrBZRAT7QANtyAAEj)'
We get:
{
"descriptor": "combo(023ad6336ae257527ff59ec4356fa5d2ac33fff5e04be9e5958dfed9b0100b7948)#mv9rgx7y",
"checksum": "9zedq5ns",
"isrange": false,
"issolvable": true,
"hasprivatekeys": true
}
Now you can import this descriptor utilizing the importdescriptors
command:
importdescriptors '[{"desc":"combo(cSWVo8YMehg6STxqw6xGgmMJE6Ac6RCJ7owcrBZRAT7QANtyAAEj)#9zedq5ns","timestamp":"now"}]'
Lastly rescan the blockchain from a degree earlier than which you might be sure to not have acquired cash. To rescan the entire chain from the genesis block don’t present any parameter:
rescanblockchain