wallet::GetWallet

Look up a loaded wallet by name.

Synopsis

Declared in <wallet/wallet.h>

std::shared_ptr<CWallet>
GetWallet(
    WalletContext& context,
    std::string const& name);

Return Value

The matching wallet, or nullptr if not loaded.

Parameters

NameDescription
contextThe wallet context to query.
nameThe wallet name to find.