Initializes, loads, and returns a CWallet from an existing wallet; returns a null pointer in case of an error

Synopsis

Declared in <wallet/wallet.h>

static
std::shared_ptr<CWallet>
LoadExisting(
    WalletContext& context,
    std::string const& name,
    std::unique_ptr<WalletDatabase> database,
    bilingual_str& error,
    std::vector<bilingual_str>& warnings);

Return Value

The loaded wallet, or nullptr on failure.

Parameters

Name

Description

context

The wallet context to load into.

name

The name of the wallet to load.

database

The database backend of the existing wallet.

error

Set to an error message on failure.

warnings

Warnings produced while loading.

Created with MrDocs