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

Return the default wallet and report how many wallets are loaded&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;
GetDefaultWallet(
    xref:wallet/WalletContext.adoc[WalletContext]& context,
    size&lowbar;t& count);
----

== Return Value

The first loaded wallet, or nullptr if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The wallet context to query&period;
| *count*
| Set to the number of loaded wallets&period;
|===


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