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

Register a loaded wallet with the wallet context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AddWallet(
    xref:wallet/WalletContext.adoc[WalletContext]& context,
    std::shared&lowbar;ptr&lt;CWallet&gt; const& wallet);
----

== Return Value

true if the wallet was added, false if it was already present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The wallet context to register into&period;
| *wallet*
| The wallet to add&period;
|===


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