[#wallet-GenerateWalletDescriptor] = xref:wallet.adoc[wallet]::GenerateWalletDescriptor :relfileprefix: ../ :mrdocs: Builds a new wallet descriptor for the given key and output type. == Synopsis Declared in `<wallet/walletutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/WalletDescriptor.adoc[WalletDescriptor] GenerateWalletDescriptor( xref:CExtPubKey.adoc[CExtPubKey] const& master_key, xref:OutputType.adoc[OutputType] const& output_type, bool internal); ---- == Return Value The generated wallet descriptor. == Parameters [cols="1,4"] |=== | Name| Description | *master_key* | The extended public key the descriptor derives from. | *output_type* | The output type the descriptor should produce. | *internal* | Whether the descriptor is for internal (change) addresses. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#