wallet::MakeWalletDatabase

Open the database backend for a wallet.

Synopsis

Declared in <wallet/wallet.h>

std::unique_ptr<WalletDatabase>
MakeWalletDatabase(
    std::string const& name,
    DatabaseOptions const& options,
    DatabaseStatus& status,
    bilingual_str& error);

Return Value

The wallet database, or nullptr on failure.

Parameters

NameDescription
nameThe wallet name.
optionsDatabase options used to open the backend.
statusSet to the database open status.
errorSet to an error message on failure.