[#wallet-CWallet-TopUpCallback-0a]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::TopUpCallback
:relfileprefix: ../../
:mrdocs:

`TopUpCallback` overloads

== Synopses

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

Callback function for after TopUp completes containing any scripts that were added by a SPKMan


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:wallet/WalletStorage/TopUpCallback.adoc[TopUpCallback](
    std::set&lt;CScript&gt; const& scripts,
    xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]* spkm) = 0;
----

[.small]#xref:wallet/WalletStorage/TopUpCallback.adoc[_» more&period;&period;&period;_]#

Handle newly generated scripts reported by a ScriptPubKeyMan top&hyphen;up&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:wallet/CWallet/TopUpCallback-0d.adoc[TopUpCallback](
    std::set&lt;CScript&gt; const& spks,
    xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]* spkm) override;
----

[.small]#xref:wallet/CWallet/TopUpCallback-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scripts*
| The scripts that were added during the top&hyphen;up&period;
| *spkm*
| The ScriptPubKeyMan that produced the scripts&period;
| *spks*
| The newly generated scripts&period;
|===


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