[#Descriptor-ExpandFromCache]
= xref:Descriptor.adoc[Descriptor]::ExpandFromCache
:relfileprefix: ../
:mrdocs:

Expand a descriptor at a specified position using cached expansion data&period;

== Synopsis

Declared in `&lt;script&sol;descriptor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
ExpandFromCache(
    int pos,
    xref:DescriptorCache.adoc[DescriptorCache] const& read&lowbar;cache,
    std::vector&lt;CScript&gt;& output&lowbar;scripts,
    xref:FlatSigningProvider.adoc[FlatSigningProvider]& out) const = 0;
----

== Return Value

True if the descriptor could be expanded from the cache&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos* [in]
| The position at which to expand the descriptor&period; If IsRange() is false, this is ignored&period;
| *read&lowbar;cache* [in]
| Cached expansion data&period;
| *output&lowbar;scripts* [out]
| The expanded scriptPubKeys&period;
| *out* [out]
| Scripts and public keys necessary for solving the expanded scriptPubKeys (may be equal to `provider`)&period;
|===


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