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

Look up a loaded wallet by name&period;

== Synopsis

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

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

== Return Value

The matching wallet, or nullptr if not loaded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The wallet context to query&period;
| *name*
| The wallet name to find&period;
|===


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