[#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 `&lt;wallet&sol;export&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94f0dddf80)&rsqb;&rsqb;
xref:util/Expected-0b.adoc[util::Expected&lt;std::vector&lt;WalletDescInfo&gt;, std::string&gt;]
ExportDescriptors(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    bool export&lowbar;private);
----

== Return Value

The exported descriptor info on success, or an error string on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet whose descriptors are exported&period;
| *export&lowbar;private*
| Whether to include private keys in the exported descriptors&period;
|===


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