[#wallet-CWallet-2constructor] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::CWallet :relfileprefix: ../../ :mrdocs: Construct wallet with specified name and database implementation. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CWallet( xref:interfaces/Chain.adoc[interfaces::Chain]* chain, std::string const& name, std::unique_ptr<WalletDatabase> database); ---- == Parameters [cols="1,4"] |=== | Name| Description | *chain* | Interface for accessing chain state, may be null. | *name* | The wallet name. | *database* | The database backend for the wallet. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#