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

Get the feerate of the chunk which transaction arg is in, in the main graph&period; Returns the empty FeePerWeight if arg does not exist in the main graph&period; The main graph must not be oversized&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:FeePerWeight.adoc[FeePerWeight]
GetMainChunkFeerate(xref:TxGraph/Ref.adoc[Ref] const& arg) noexcept = 0;
----

== Return Value

The feerate of the chunk containing the transaction, or the empty FeePerWeight if it does not exist in the main graph&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *arg*
| Reference to the transaction to query&period;
|===


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