A web based interface to the Bitcoin API JSON-RPC

Command: keypoolrefill

The keypoolrefill RPC fills the cache of unused pre-generated keys (the keypool).

Parameter #1—the new keypool size
Result—null on success

The new size of the keypool; if the number of keys in the keypool is less than this number, new keys will be generated. Default is 100. The value 0 also equals the default. The value specified is for this call only—the default keypool size is not changed. If the keypool is successfully filled, JSON null will be returned.
{
	"result": null,
	"error": {
		"code": -13,
		"message": "Error: Please enter the wallet passphrase with walletpassphrase first."
	},
	"id": null
}
keypoolrefill ( newsize )

Fills the keypool.
Requires wallet passphrase to be set with walletpassphrase call.

Arguments
1. newsize     (numeric, optional, default=100) The new keypool size

Examples:
> bitcoin-cli keypoolrefill 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/