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

Builds a new wallet descriptor for the given key and output type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/WalletDescriptor.adoc[WalletDescriptor]
GenerateWalletDescriptor(
    xref:CExtPubKey.adoc[CExtPubKey] const& master&lowbar;key,
    xref:OutputType.adoc[OutputType] const& output&lowbar;type,
    bool internal);
----

== Return Value

The generated wallet descriptor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *master&lowbar;key*
| The extended public key the descriptor derives from&period;
| *output&lowbar;type*
| The output type the descriptor should produce&period;
| *internal*
| Whether the descriptor is for internal (change) addresses&period;
|===


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