object SatoshisPerByte extends FeeUnitFactory[SatoshisPerByte] with Serializable
- Alphabetic
- By Inheritance
- SatoshisPerByte
- 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): SatoshisPerByte
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): SatoshisPerByte
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
- SatoshisPerByte → 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: SatoshisPerByte
- 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
- SatoshisPerByte → 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
- SatoshisPerByte → 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
- SatoshisPerByte → 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: SatoshisPerByte