Fee rate in satoshis per virtualbyte: Amount / vB the feerate is represented internally as FeeFrac.
More...
#include <feerate.h>
Fee rate in satoshis per virtualbyte: Amount / vB the feerate is represented internally as FeeFrac.
Definition at line 24 of file feerate.h.
◆ CFeeRate() [1/3]
◆ CFeeRate() [2/3]
| CFeeRate::CFeeRate |
( |
const Amount |
m_feerate_kvb | ) |
|
|
inlineexplicit |
◆ CFeeRate() [3/3]
| CFeeRate::CFeeRate |
( |
const Amount |
nFeePaid, |
|
|
int32_t |
virtual_bytes |
|
) |
| |
Construct a fee rate from a fee in satoshis and a size in B.
param@[in] nFeePaid The fee paid by a transaction param@[in] virtual_bytes The vsize of a transaction, in vbytes
Passing any virtual_bytes less than or equal to 0 will result in 0 fee rate per 0 size.
Definition at line 15 of file feerate.cpp.
◆ GetFee()
| Amount CFeeRate::GetFee |
( |
int32_t |
virtual_bytes | ) |
const |
Return the fee in satoshis for the given size in bytes.
If the calculated fee would have fractional satoshis, then the returned fee will always be rounded up to the nearest satoshi.
Definition at line 23 of file feerate.cpp.
◆ GetFeePerK()
| Amount CFeeRate::GetFeePerK |
( |
| ) |
const |
|
inline |
Return the fee in satoshis for a size of 1000 bytes.
Definition at line 55 of file feerate.h.
◆ operator+=()
◆ SERIALIZE_METHODS()
| CFeeRate::SERIALIZE_METHODS |
( |
CFeeRate |
, |
|
|
obj |
|
|
) |
| |
|
inline |
◆ ToString()
| std::string CFeeRate::ToString |
( |
| ) |
const |
◆ operator<=>
◆ operator==
◆ m_feerate
The documentation for this class was generated from the following files: