wallet::GetDefaultWallet

Return the default wallet and report how many wallets are loaded.

Synopsis

Declared in <wallet/wallet.h>

std::shared_ptr<CWallet>
GetDefaultWallet(
    WalletContext& context,
    size_t& count);

Return Value

The first loaded wallet, or nullptr if none.

Parameters

NameDescription
contextThe wallet context to query.
countSet to the number of loaded wallets.