[#wallet-ScriptPubKeyMan-TopUp]
= xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::TopUp
:relfileprefix: ../../
:mrdocs:

Fills internal address pool&period; Use within ScriptPubKeyMan implementations should be used sparingly and only when something from the address pool is removed, excluding GetNewDestination and GetReservedDestination&period; External wallet code is primarily responsible for topping up prior to fetching new addresses

== Synopsis

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

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

== Return Value

true if the address pool was successfully topped up&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| Number of keys to top up to, or 0 to use the configured keypool size&period;
|===


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