I created a new empty encrypted wallet and used walletpassphrase to unlock it and used importprivkey to import my private key. Then I found that I still cannot create a new address. After entering getnewaddress, I get the error message “Error: This wallet has no available keys (code -4)”.
I expected that I can create a new address.
‘Create a new receiving address’ is greyed out.
I used Bitcoin Core v0.21.0 downloaded from bitcoin.org, I got the error message in the console of Bitcoin Core GUI.
Windows 10.0.19042, Intel i7-4720HQ, HDD