DotNetLightning


FeeRatePerKw Type

feerate per kilo weight

Union cases

Union case Description

FeeRatePerKw uint32

Full Usage: FeeRatePerKw uint32

Parameters:
    Item : uint32

Item : uint32

Instance members

Instance member Description

this.AsNBitcoinFeeRate

Full Usage: this.AsNBitcoinFeeRate

Returns: FeeRate
Returns: FeeRate

this.CalculateFeeFromVirtualSize

Full Usage: this.CalculateFeeFromVirtualSize

Parameters:
Returns: Money
tx : Transaction
Returns: Money

this.CalculateFeeFromVirtualSize

Full Usage: this.CalculateFeeFromVirtualSize

Parameters:
    vSize : uint64

Returns: Money
vSize : uint64
Returns: Money

this.CalculateFeeFromWeight

Full Usage: this.CalculateFeeFromWeight

Parameters:
    weight : uint64

Returns: Money
weight : uint64
Returns: Money

this.MismatchRatio

Full Usage: this.MismatchRatio

Parameters:
Returns: float

Suppose remote = 3.0 and local = 1.0. This formula will calculate the mismatch "ratio" to be: abs (2.0 * (remote - local) / (remote + local)) == abs (2.0 * (3.0 - 1.0) / (3.0 + 1.0)) == abs (2.0 * 2.0 / 4.0) == 1.0 If remote instead equals 0.33 we get the same mismatch ratio: abs (2.0 * (remote - local) / (remote + local)) == abs (2.0 * (0.33 - 1.0) / (0.33 + 1.0)) == abs (2.0 * 0.66 / 1.33) == 1.0 This example demonstrates how the formula is both symmetrical and invariant in the scale of the parameters. ie. swapping remote and local, or scaling them both by a constant factor, will produce the same mismatch ratio. See this wikipedia entry for more info on ways of calculating relative differences: https://en.wikipedia.org/wiki/Relative_change_and_difference

other : FeeRatePerKw
Returns: float

this.Value

Full Usage: this.Value

Returns: uint32
Returns: uint32

Static members

Static member Description

a * b

Full Usage: a * b

Parameters:
Returns: FeeRatePerKw
a : FeeRatePerKw
b : uint32
Returns: FeeRatePerKw

a + b

Full Usage: a + b

Parameters:
Returns: FeeRatePerKw
a : FeeRatePerKw
b : uint32
Returns: FeeRatePerKw

FeeRatePerKw.FromFee(fee, weight)

Full Usage: FeeRatePerKw.FromFee(fee, weight)

Parameters:
    fee : Money
    weight : uint64

Returns: FeeRatePerKw
fee : Money
weight : uint64
Returns: FeeRatePerKw

FeeRatePerKw.FromFeeAndVSize(fee, vsize)

Full Usage: FeeRatePerKw.FromFeeAndVSize(fee, vsize)

Parameters:
    fee : Money
    vsize : uint64

Returns: FeeRatePerKw
fee : Money
vsize : uint64
Returns: FeeRatePerKw

FeeRatePerKw.Max(a, b)

Full Usage: FeeRatePerKw.Max(a, b)

Parameters:
Returns: FeeRatePerKw
a : FeeRatePerKw
b : FeeRatePerKw
Returns: FeeRatePerKw