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

Get all of the descriptors from a legacy wallet

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde07358), requires&lowbar;capability(0x7f95061aa098), requires&lowbar;capability(0x7f94f2b7aba8), requires&lowbar;capability(0x7f94f0cf9838), requires&lowbar;capability(0x7f94fee3c228)&rsqb;&rsqb;
std::optional&lt;MigrationData&gt;
GetDescriptorsForLegacy(xref:bilingual_str.adoc[bilingual&lowbar;str]& error) const;
----

== Return Value

The migration data, or nullopt on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *error*
| Set to an error message on failure&period;
|===


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