[#wallet-MakeDatabase] = xref:wallet.adoc[wallet]::MakeDatabase :relfileprefix: ../ :mrdocs: Creates or opens a wallet database at the given path. == Synopsis Declared in `<wallet/db.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<WalletDatabase> 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_str]& error); ---- == Return Value The database handle, or nullptr on failure. == Parameters [cols="1,4"] |=== | Name| Description | *path* | The wallet path. | *options* | Options controlling how the database is opened or created. | *status* | Receives the outcome of the operation. | *error* | Receives an error description on failure. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#