[#wallet-GetDefaultWallet] = xref:wallet.adoc[wallet]::GetDefaultWallet :relfileprefix: ../ :mrdocs: Return the default wallet and report how many wallets are loaded. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::shared_ptr<CWallet> GetDefaultWallet( xref:wallet/WalletContext.adoc[WalletContext]& context, size_t& count); ---- == Return Value The first loaded wallet, or nullptr if none. == Parameters [cols="1,4"] |=== | Name| Description | *context* | The wallet context to query. | *count* | Set to the number of loaded wallets. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#