[#wallet-CWallet-TopUpKeyPool]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::TopUpKeyPool
:relfileprefix: ../../
:mrdocs:

Refill the keypool up to the target size&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
TopUpKeyPool(unsigned int kpSize = 0);
----

== Return Value

true if the keypool was topped up&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *kpSize*
| Target keypool size, or 0 to use the configured size&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
