[#wallet-ExportWatchOnlyWallet] = xref:wallet.adoc[wallet]::ExportWatchOnlyWallet :relfileprefix: ../ :mrdocs: Make a new watchonly wallet file containing the public descriptors from this wallet The exported watchonly wallet file will be named and placed at the path specified in 'destination' == Synopsis Declared in `<wallet/export.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e16015720)]] xref:util/Result.adoc[util::Result<std::string>] ExportWatchOnlyWallet( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:fs/path.adoc[fs::path] const& destination, xref:wallet/WalletContext.adoc[WalletContext]& context); ---- == Return Value The name of the created watch‐only wallet on success, or an error on failure. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet to export the public descriptors from. | *destination* | The path where the new watch‐only wallet file is created. | *context* | The wallet context used to create and load the new wallet. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#