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

Register a callback invoked whenever a wallet is loaded&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::unique&lowbar;ptr&lt;interfaces::Handler&gt;
HandleLoadWallet(
    xref:wallet/WalletContext.adoc[WalletContext]& context,
    xref:LoadWalletFn.adoc[LoadWalletFn] load&lowbar;wallet);
----

== Return Value

A handler that unregisters the callback when destroyed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The wallet context to register with&period;
| *load&lowbar;wallet*
| The callback to invoke on wallet load&period;
|===


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