[#MemPoolFeeRateEstimatorCache-GetCachedEstimate]
= xref:MemPoolFeeRateEstimatorCache.adoc[MemPoolFeeRateEstimatorCache]::GetCachedEstimate
:relfileprefix: ../
:mrdocs:

Returns cached estimates if not stale and computed on tip&lowbar;hash, nullopt otherwise&period;

== Synopsis

Declared in `&lt;policy&sol;fees&sol;mempool&lowbar;estimator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;FeeRateEstimate&gt;
GetCachedEstimate(xref:uint256.adoc[uint256] const& tip&lowbar;hash) const;
----

== Return Value

The cached estimate when fresh and computed on tip&lowbar;hash, otherwise nullopt&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tip&lowbar;hash*
| Hash of the chain tip the caller expects the estimate to match&period;
|===


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