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

Constructors

== Synopses

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

Fee rate of 0 satoshis per 0 vB


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:CFeeRate/2constructor-07.adoc[CFeeRate]() = default;
----

[.small]#xref:CFeeRate/2constructor-07.adoc[_» more&period;&period;&period;_]#

Construct from a fee rate expressed as FeePerVSize&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:CFeeRate/2constructor-04.adoc[CFeeRate](xref:FeePerVSize.adoc[FeePerVSize] const& feerate);
----

[.small]#xref:CFeeRate/2constructor-04.adoc[_» more&period;&period;&period;_]#

Construct a fee rate from an amount in satoshis per 1000 vB&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::integral I&gt;
constexpr
explicit
xref:CFeeRate/2constructor-09.adoc[CFeeRate](I const m&lowbar;feerate&lowbar;kvb);
----

[.small]#xref:CFeeRate/2constructor-09.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:CFeeRate/2constructor-0a.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *feerate*
| Fee rate as a fee&sol;vsize fraction&period;
| *m&lowbar;feerate&lowbar;kvb*
| Fee rate expressed as satoshis per 1000 virtualbytes&period;
| *nFeePaid*
| Fee paid, in satoshis&period;
| *virtual&lowbar;bytes*
| Transaction virtual size, in vB&period;
|===


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