How do I refill the keypool?

algorithm X11
source branch 0.14

updated July 8, 2021, 3:14 pm

Fix the error message "Error: Keypool ran out, please call keypoolrefill first" with the following steps.

Open your wallet.

Click on "Tools" -> "Debug console".

This is the console where you execute RPC commands.

Unlock your wallet with the following RPC command:

walletpassphrase yourpassword 600

Replace the text "yourpassword" with the password used to encrypt your wallet.
The number 600 is the amount of seconds your wallet is unlocked.

Fill the keypool with the following RPC command:

keypoolrefill