[#CTxMemPool-GetMainChunkFeerate]
= xref:CTxMemPool.adoc[CTxMemPool]::GetMainChunkFeerate
:relfileprefix: ../
:mrdocs:

Returns the fee rate of the chunk containing the given entry in the main graph&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a2b18), requires&lowbar;capability(0x7f2e2721bb28), requires&lowbar;capability(0x7f2e421cd238), requires&lowbar;capability(0x7f2e2880c1f8), requires&lowbar;capability(0x7f2e3212f588), requires&lowbar;capability(0x7f2e347f7c18), requires&lowbar;capability(0x7f2e2b05c088), requires&lowbar;capability(0x7f2e2bee3728)&rsqb;&rsqb;
xref:FeePerWeight.adoc[FeePerWeight]
GetMainChunkFeerate(xref:CTxMemPoolEntry.adoc[CTxMemPoolEntry] const& tx) const;
----

== Return Value

The fee&hyphen;per&hyphen;weight of the entry&apos;s chunk&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The mempool entry to query&period;
|===


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