case class SatoshisPerVirtualByte(currencyUnit: CurrencyUnit) extends BitcoinFeeUnit with Product with Serializable
A 'virtual byte' (also known as virtual size) is a new weight measurement that was created with segregated witness (BIP141). Now 1 'virtual byte' has the weight of 4 bytes in the org.bitcoins.core.protocol.transaction.TransactionWitness of a org.bitcoins.core.protocol.transaction.WitnessTransaction
- Alphabetic
- By Inheritance
- SatoshisPerVirtualByte
- Serializable
- Product
- Equals
- BitcoinFeeUnit
- FeeUnit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SatoshisPerVirtualByte(currencyUnit: CurrencyUnit)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(tx: Transaction): CurrencyUnit
- Definition Classes
- FeeUnit
- final def *(long: Long): CurrencyUnit
- Definition Classes
- FeeUnit
- final def *(int: Int): CurrencyUnit
- Definition Classes
- FeeUnit
- final def *(cu: CurrencyUnit): CurrencyUnit
- Definition Classes
- FeeUnit
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def calc(tx: Transaction): CurrencyUnit
Calculates the fee for the transaction using this fee rate, rounds down satoshis
Calculates the fee for the transaction using this fee rate, rounds down satoshis
- Definition Classes
- FeeUnit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val currencyUnit: CurrencyUnit
- Definition Classes
- SatoshisPerVirtualByte → FeeUnit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def factory: FeeUnitFactory[SatoshisPerVirtualByte]
- Definition Classes
- SatoshisPerVirtualByte → FeeUnit
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def 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
- FeeUnit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLong: Long
- Definition Classes
- FeeUnit
- lazy val toSatoshisPerKW: SatoshisPerKW
- val toSatsPerVByte: SatoshisPerVirtualByte
Converts the current fee unit to sats/vybte
Converts the current fee unit to sats/vybte
- Definition Classes
- SatoshisPerVirtualByte → FeeUnit
- def toString(): String
- Definition Classes
- SatoshisPerVirtualByte → FeeUnit → 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
- FeeUnit
- 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()