[#wallet-ExportDescriptors] = xref:wallet.adoc[wallet]::ExportDescriptors :relfileprefix: ../ :mrdocs: Export the descriptors from a wallet so that they can be imported elsewhere == Synopsis Declared in `<wallet/export.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e16015040)]] xref:util/Expected-0b.adoc[util::Expected<std::vector<WalletDescInfo>, std::string>] ExportDescriptors( xref:wallet/CWallet.adoc[CWallet] const& wallet, bool export_private); ---- == Return Value The exported descriptor info on success, or an error string on failure. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet whose descriptors are exported. | *export_private* | Whether to include private keys in the exported descriptors. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#