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

Estimate feerate needed to get be included in a block within confTarget blocks&period; If no answer can be given at confTarget, return an estimate at the closest target where one can be given&period; &apos;conservative&apos; estimates are valid over longer time horizons also&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(0x7f2e3ae70e58), requires&lowbar;capability(0x7f2e2423ae58)&rsqb;&rsqb;
virtual
xref:CFeeRate.adoc[CFeeRate]
estimateSmartFee(
    int confTarget,
    xref:FeeCalculation.adoc[FeeCalculation]* feeCalc,
    bool conservative) const;
----

== Return Value

The estimated feerate&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *confTarget*
| Desired number of blocks within which to confirm&period;
| *feeCalc*
| Optional output with detailed information about the calculation&period;
| *conservative*
| Whether to produce a conservative estimate valid over longer horizons&period;
|===


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