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

Descriptor with some wallet metadata

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class WalletDescriptor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/WalletDescriptor/2constructor-00f.adoc[`WalletDescriptor`]         [.small]#[constructor]#
| Constructors
| xref:wallet/WalletDescriptor/DecNext.adoc[`DecNext`] 
| Increments the next&lowbar;index of the descriptor&period;
| xref:wallet/WalletDescriptor/DeserializeDescriptor.adoc[`DeserializeDescriptor`] 
| Parses a descriptor from its string form and updates the descriptor and id&period;
| xref:wallet/WalletDescriptor/GetEnd.adoc[`GetEnd`] 
| Returns the index past the end of the descriptor&apos;s range&period;
| xref:wallet/WalletDescriptor/GetNext.adoc[`GetNext`] 
| Returns the index of the next item to generate&period;
| xref:wallet/WalletDescriptor/GetStart.adoc[`GetStart`] 
| Returns the first index in the descriptor&apos;s range&period;
| xref:wallet/WalletDescriptor/IncNext.adoc[`IncNext`] 
| Increments the next&lowbar;index of the descriptor&period;
| xref:wallet/WalletDescriptor/SetEnd.adoc[`SetEnd`] 
| Sets the range&lowbar;end of the descriptor&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/WalletDescriptor/cache.adoc[`cache`] 
| Cached expanded keys and scripts for the descriptor&period;
| xref:wallet/WalletDescriptor/creation_time.adoc[`creation&lowbar;time`] 
| Unix timestamp of when the descriptor was added to the wallet&period;
| xref:wallet/WalletDescriptor/descriptor.adoc[`descriptor`] 
| The parsed output script descriptor&period;
| xref:wallet/WalletDescriptor/id.adoc[`id`] 
| Descriptor ID (calculated once at descriptor initialization&sol;deserialization)&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/GenerateWalletDescriptor.adoc[`GenerateWalletDescriptor`]
| Builds a new wallet descriptor for the given key and output type&period;
|===


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