[#Descriptor-Expand] = xref:Descriptor.adoc[Descriptor]::Expand :relfileprefix: ../ :mrdocs: Expand a descriptor at a specified position. == Synopsis Declared in `<script/descriptor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool Expand( int pos, xref:SigningProvider.adoc[SigningProvider] const& provider, std::vector<CScript>& output_scripts, xref:FlatSigningProvider.adoc[FlatSigningProvider]& out, xref:DescriptorCache.adoc[DescriptorCache]* write_cache = nullptr) const = 0; ---- == Return Value True if the descriptor could be expanded at the position. == Parameters [cols="1,4"] |=== | Name| Description | *pos* [in] | The position at which to expand the descriptor. If IsRange() is false, this is ignored. | *provider* [in] | The provider to query for private keys in case of hardened derivation. | *output_scripts* [out] | The expanded scriptPubKeys. | *out* [out] | Scripts and public keys necessary for solving the expanded scriptPubKeys (may be equal to `provider`). | *write_cache* [out] | Cache data necessary to evaluate the descriptor at this point without access to private keys. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#