[#CFeeRate-GetFee]
= xref:CFeeRate.adoc[CFeeRate]::GetFee
:relfileprefix: ../
:mrdocs:

Return the fee in satoshis for the given vsize in vbytes&period; If the calculated fee would have fractional satoshis, then the returned fee will always be rounded up to the nearest satoshi&period;

== Synopsis

Declared in `&lt;policy&sol;feerate&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
GetFee(int32&lowbar;t virtual&lowbar;bytes) const;
----

== Return Value

Fee in satoshis for the given vsize&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *virtual&lowbar;bytes*
| Transaction virtual size, in vB&period;
|===


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