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

Creates or opens a wallet database at the given path&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::unique&lowbar;ptr&lt;WalletDatabase&gt;
MakeDatabase(
    xref:fs/path.adoc[fs::path] const& path,
    xref:wallet/DatabaseOptions.adoc[DatabaseOptions] const& options,
    xref:wallet/DatabaseStatus.adoc[DatabaseStatus]& status,
    xref:bilingual_str.adoc[bilingual&lowbar;str]& error);
----

== Return Value

The database handle, or nullptr on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| The wallet path&period;
| *options*
| Options controlling how the database is opened or created&period;
| *status*
| Receives the outcome of the operation&period;
| *error*
| Receives an error description on failure&period;
|===


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