[#wallet-CWallet-2constructor]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::CWallet
:relfileprefix: ../../
:mrdocs:

Construct wallet with specified name and database implementation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CWallet(
    xref:interfaces/Chain.adoc[interfaces::Chain]* chain,
    std::string const& name,
    std::unique&lowbar;ptr&lt;WalletDatabase&gt; database);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain*
| Interface for accessing chain state, may be null&period;
| *name*
| The wallet name&period;
| *database*
| The database backend for the wallet&period;
|===


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