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

Constructs a wallet descriptor from a descriptor and its range metadata&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
WalletDescriptor(
    std::shared&lowbar;ptr&lt;Descriptor&gt; descriptor,
    uint64&lowbar;t creation&lowbar;time,
    int32&lowbar;t range&lowbar;start,
    int32&lowbar;t range&lowbar;end,
    int32&lowbar;t next&lowbar;index);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| The output script descriptor&period;
| *creation&lowbar;time*
| Unix timestamp of when the descriptor was added&period;
| *range&lowbar;start*
| First index in the descriptor&apos;s range&period;
| *range&lowbar;end*
| Index past the last item in the range&period;
| *next&lowbar;index*
| Index of the next item to generate&period;
|===


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