[#CBlockPolicyEstimator-EstimateFeeRate]
= xref:CBlockPolicyEstimator.adoc[CBlockPolicyEstimator]::EstimateFeeRate
:relfileprefix: ../
:mrdocs:

Estimate the feerate needed to confirm within `target` blocks&semi; wraps estimateSmartFee into a FeeRateEstimation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e3ae71998), requires&lowbar;capability(0x7f2e2423b998)&rsqb;&rsqb;
xref:util/Expected-0b.adoc[util::Expected&lt;FeeRateEstimation, FeeRateEstimationError&gt;]
EstimateFeeRate(
    int target,
    bool conservative) const;
----

== Return Value

The fee rate estimation on success, or an error describing why none could be given&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *target*
| Desired number of blocks within which to confirm&period;
| *conservative*
| Whether to produce a conservative estimate valid over longer horizons&period;
|===


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