[#CFeeRate-2constructor-0a]
= xref:CFeeRate.adoc[CFeeRate]::CFeeRate
:relfileprefix: ../
:mrdocs:

Construct a fee rate from a fee in satoshis and a vsize in vB&period;

== Synopsis

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

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

== Description

Passing any virtual&lowbar;bytes less than or equal to 0 will result in 0 fee rate per 0 size&period;

== Parameters

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


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