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

Name

Description

context

The wallet context to query.

count

Set to the number of loaded wallets.

Created with MrDocs