wallet::CWallet::CWallet

Construct wallet with specified name and database implementation.

Synopsis

Declared in <wallet/wallet.h>

CWallet(
    interfaces::Chain* chain,
    std::string const& name,
    std::unique_ptr<WalletDatabase> database);

Parameters

NameDescription
chainInterface for accessing chain state, may be null.
nameThe wallet name.
databaseThe database backend for the wallet.