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

Open the database backend for a wallet&period;

== Synopsis

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

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

== Return Value

The wallet database, or nullptr on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The wallet name&period;
| *options*
| Database options used to open the backend&period;
| *status*
| Set to the database open status&period;
| *error*
| Set to an error message on failure&period;
|===


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