sealed abstract class MilliSatoshis extends NetworkElement with Ordered[MilliSatoshis] with BasicArithmetic[MilliSatoshis]
The common currency unit used in the LN protocol for updating HTLCs.
- See also
- Alphabetic
- By Inheritance
- MilliSatoshis
- BasicArithmetic
- Ordered
- Comparable
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Concrete Value Members
- def !=(ms: MilliSatoshis): Boolean
- def !=(lnCurrencyUnit: LnCurrencyUnit): Boolean
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(factor: MilliSatoshis): MilliSatoshis
- Definition Classes
- MilliSatoshis → BasicArithmetic
- def *(factor: BigInt): MilliSatoshis
- Definition Classes
- MilliSatoshis → BasicArithmetic
- def +(ms: MilliSatoshis): MilliSatoshis
- Definition Classes
- MilliSatoshis → BasicArithmetic
- def -(ms: MilliSatoshis): MilliSatoshis
- Definition Classes
- MilliSatoshis → BasicArithmetic
- def <(ln: LnCurrencyUnit): Boolean
- def <(that: MilliSatoshis): Boolean
- Definition Classes
- Ordered
- def <=(ln: LnCurrencyUnit): Boolean
- def <=(that: MilliSatoshis): Boolean
- Definition Classes
- Ordered
- def ==(ms: MilliSatoshis): Boolean
- def ==(lnCurrencyUnit: LnCurrencyUnit): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(ln: LnCurrencyUnit): Boolean
- def >(that: MilliSatoshis): Boolean
- Definition Classes
- Ordered
- def >=(ln: LnCurrencyUnit): Boolean
- def >=(that: MilliSatoshis): Boolean
- Definition Classes
- Ordered
- def addSafe(n: MilliSatoshis): Try[MilliSatoshis]
Some classes have restrictions on upper bounds for it's underlying value.
Some classes have restrictions on upper bounds for it's underlying value. This might cause the
+
operator to throw. This method wraps it in aTry
block.- Definition Classes
- BasicArithmetic
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- def bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- MilliSatoshis → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compare(ms: MilliSatoshis): Int
- Definition Classes
- MilliSatoshis → Ordered
- def compareTo(that: MilliSatoshis): Int
- Definition Classes
- Ordered → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- MilliSatoshis → AnyRef → Any
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def multiplySafe(factor: MilliSatoshis): Try[MilliSatoshis]
Some classes have restrictions on upper bounds for it's underlying value.
Some classes have restrictions on upper bounds for it's underlying value. This might cause the
*
operator to throw. This method wraps it in aTry
block.- Definition Classes
- BasicArithmetic
- def multiplySafe(factor: BigInt): Try[MilliSatoshis]
Some classes have restrictions on upper bounds for it's underlying value.
Some classes have restrictions on upper bounds for it's underlying value. This might cause the
*
operator to throw. This method wraps it in aTry
block.- Definition Classes
- BasicArithmetic
- 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 subtractSafe(n: MilliSatoshis): Try[MilliSatoshis]
Some classes have restrictions on lower bounds for it's underlying value.
Some classes have restrictions on lower bounds for it's underlying value. This might cause the
-
operator to throw. This method wraps it in aTry
block.- Definition Classes
- BasicArithmetic
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBigDecimal: BigDecimal
- def toBigInt: BigInt
- def toLnCurrencyUnit: LnCurrencyUnit
- def toLong: Long
- def toSatoshis: Satoshis
- def toString(): String
Output example:
Output example:
> MilliSatoshis(10) 10 msat
- Definition Classes
- MilliSatoshis → AnyRef → Any
- def toUInt64: UInt64
- 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()