[#wallet-CreateFromDump]
= xref:wallet.adoc[wallet]::CreateFromDump
:relfileprefix: ../
:mrdocs:

Creates a new wallet database from a previously dumped file&period;

== Synopsis

Declared in `&lt;wallet&sol;dump&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CreateFromDump(
    xref:ArgsManager.adoc[ArgsManager] const& args,
    std::string const& name,
    xref:fs/path.adoc[fs::path] const& wallet&lowbar;path,
    xref:bilingual_str.adoc[bilingual&lowbar;str]& error,
    std::vector&lt;bilingual&lowbar;str&gt;& warnings);
----

== Return Value

true if the wallet was created successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| The parsed arguments specifying the dump file and options&period;
| *name*
| The name to give the new wallet&period;
| *wallet&lowbar;path*
| The path where the new wallet is created&period;
| *error*
| Receives an error message on failure&period;
| *warnings*
| Receives any non&hyphen;fatal warnings produced during creation&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
