[#MemPoolFeeRateEstimator-Write]
= xref:MemPoolFeeRateEstimator.adoc[MemPoolFeeRateEstimator]::Write
:relfileprefix: ../
:mrdocs:

Serialize mined&hyphen;block stats without taking ownership of file&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e403ca8e8), requires&lowbar;capability(0x7f2e1404d048)&rsqb;&rsqb;
bool
Write(xref:AutoFile.adoc[AutoFile]& file) const;
----

== Description

Callers must explicitly close file and check for errors after writing&period;

== Return Value

true if the statistics were written successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| The file to write the mined&hyphen;block statistics to&period;
|===


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