wallet::CreateFromDump

Creates a new wallet database from a previously dumped file.

Synopsis

Declared in <wallet/dump.h>

bool
CreateFromDump(
    ArgsManager const& args,
    std::string const& name,
    fs::path const& wallet_path,
    bilingual_str& error,
    std::vector<bilingual_str>& warnings);

Return Value

true if the wallet was created successfully.

Parameters

NameDescription
argsThe parsed arguments specifying the dump file and options.
nameThe name to give the new wallet.
wallet_pathThe path where the new wallet is created.
errorReceives an error message on failure.
warningsReceives any non-fatal warnings produced during creation.