[#DescriptorCache-GetCachedParentExtPubKey]
= xref:DescriptorCache.adoc[DescriptorCache]::GetCachedParentExtPubKey
:relfileprefix: ../
:mrdocs:

Retrieve a cached parent xpub

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
GetCachedParentExtPubKey(
    uint32&lowbar;t key&lowbar;exp&lowbar;pos,
    xref:CExtPubKey.adoc[CExtPubKey]& xpub) const;
----

== Return Value

Whether a parent xpub was cached at that position&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key&lowbar;exp&lowbar;pos* [in]
| Position of the key expression within the descriptor
| *xpub* [out]
| The CExtPubKey to get from cache
|===


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