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

Name

Description

chain

Interface for accessing chain state, may be null.

name

The wallet name.

database

The database backend for the wallet.

Created with MrDocs