Create a new wallet and load it into the context.
Synopsis
Declared in <wallet/wallet.h>
std::shared_ptr<CWallet>
CreateWallet(
WalletContext& context,
std::string const& name,
std::optional<bool> load_on_start,
DatabaseOptions& options,
DatabaseStatus& status,
bilingual_str& error,
std::vector<bilingual_str>& warnings);
Return Value
The new wallet, or nullptr on failure.
Parameters
Name |
Description |
context |
The wallet context to create into. |
name |
The name for the new wallet. |
load_on_start |
Optionally set whether the wallet loads on startup. |
options |
Database options used to create the wallet. |
status |
Set to the database creation status. |
error |
Set to an error message on failure. |
warnings |
Warnings produced while creating. |
Created with MrDocs