object SatoshisPerKiloByte extends FeeUnitFactory[SatoshisPerKiloByte] with Serializable
- Alphabetic
- By Inheritance
- SatoshisPerKiloByte
- Serializable
- FeeUnitFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calc(totalInputAmount: CurrencyUnit, tx: Transaction): SatoshisPerKiloByte
Calculates the fee rate from the given Transaction.
Calculates the fee rate from the given Transaction. Uses Math.round for rounding up, which returns the closest long to the argument
- totalInputAmount
Total amount being spent by the transaction's inputs
- tx
Transaction to calculate the fee rate of
- Definition Classes
- FeeUnitFactory
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromLong(sats: Long): SatoshisPerKiloByte
Creates an instance T where the value given is the numerator of the fee unit
Creates an instance T where the value given is the numerator of the fee unit
- Definition Classes
- SatoshisPerKiloByte → FeeUnitFactory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val one: SatoshisPerKiloByte
- lazy val scaleFactor: Long
The coefficient the denominator in the unit is multiplied by, for example sats/kilobyte -> 1000
The coefficient the denominator in the unit is multiplied by, for example sats/kilobyte -> 1000
- Definition Classes
- SatoshisPerKiloByte → FeeUnitFactory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def txSizeForCalc(tx: Transaction): Long
Takes the given transaction returns a size that will be used for calculating the fee rate.
Takes the given transaction returns a size that will be used for calculating the fee rate. This is generally the denominator in the unit, ie sats/byte
- Definition Classes
- SatoshisPerKiloByte → FeeUnitFactory
- val unitString: String
String to identify this fee unit, for example "sats/byte"
String to identify this fee unit, for example "sats/byte"
- Definition Classes
- SatoshisPerKiloByte → FeeUnitFactory
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val zero: SatoshisPerKiloByte