Packages

final case class Route(totalTimeLock: UInt32 = lnrpc.Route._typemapper_totalTimeLock.toCustom(0), totalFees: Long = 0L, totalAmt: Long = 0L, hops: Seq[Hop] = _root_.scala.Seq.empty, totalFeesMsat: Long = 0L, totalAmtMsat: Long = 0L, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Route] with Product with Serializable

A path through the channel graph which runs over one or more channels in succession. This struct carries all the information required to craft the Sphinx onion packet, and send the payment along the first hop in the path. A route is only selected as valid if all the channels have sufficient capacity to carry the initial payment amount after fees are accounted for.

totalTimeLock

The cumulative (final) time lock across the entire route. This is the CLTV value that should be extended to the first hop in the route. All other hops will decrement the time-lock as advertised, leaving enough time for all hops to wait for or present the payment preimage to complete the payment.

totalFees

The sum of the fees paid at each hop within the final route. In the case of a one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.

totalAmt

The total amount of funds required to complete a payment over this route. This value includes the cumulative fees at each hop. As a result, the HTLC extended to the first-hop in the route will need to have at least this many satoshis, otherwise the route will fail at an intermediate node due to an insufficient amount of fees.

hops

Contains details concerning the specific forwarding details at each hop.

totalFeesMsat

The total fees in millisatoshis.

totalAmtMsat

The total amount in millisatoshis.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Route
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Route(totalTimeLock: UInt32 = lnrpc.Route._typemapper_totalTimeLock.toCustom(0), totalFees: Long = 0L, totalAmt: Long = 0L, hops: Seq[Hop] = _root_.scala.Seq.empty, totalFeesMsat: Long = 0L, totalAmtMsat: Long = 0L, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    totalTimeLock

    The cumulative (final) time lock across the entire route. This is the CLTV value that should be extended to the first hop in the route. All other hops will decrement the time-lock as advertised, leaving enough time for all hops to wait for or present the payment preimage to complete the payment.

    totalFees

    The sum of the fees paid at each hop within the final route. In the case of a one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.

    totalAmt

    The total amount of funds required to complete a payment over this route. This value includes the cumulative fees at each hop. As a result, the HTLC extended to the first-hop in the route will need to have at least this many satoshis, otherwise the route will fail at an intermediate node due to an insufficient amount of fees.

    hops

    Contains details concerning the specific forwarding details at each hop.

    totalFeesMsat

    The total fees in millisatoshis.

    totalAmtMsat

    The total amount in millisatoshis.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllHops(__vs: Iterable[Hop]): Route
  5. def addHops(__vs: Hop*): Route
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearHops: Route
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def companion: Route.type
    Definition Classes
    Route → GeneratedMessage
  10. def discardUnknownFields: Route
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Route → GeneratedMessage
  15. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Route → GeneratedMessage
  16. val hops: Seq[Hop]
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. def serializedSize: Int
    Definition Classes
    Route → GeneratedMessage
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  25. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  26. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  27. def toProtoString: String
    Definition Classes
    Route → GeneratedMessage
  28. val totalAmtMsat: Long
  29. val totalFeesMsat: Long
  30. val totalTimeLock: UInt32
  31. val unknownFields: UnknownFieldSet
  32. def update(ms: (Lens[Route, Route]) => Mutation[Route]*): Route
    Definition Classes
    Updatable
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. def withHops(__v: Seq[Hop]): Route
  37. def withTotalAmt(__v: Long): Route
  38. def withTotalAmtMsat(__v: Long): Route
  39. def withTotalFees(__v: Long): Route
  40. def withTotalFeesMsat(__v: Long): Route
  41. def withTotalTimeLock(__v: UInt32): Route
  42. def withUnknownFields(__v: UnknownFieldSet): Route
  43. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  44. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Route → GeneratedMessage
  45. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. val totalAmt: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  2. val totalFees: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

Inherited from Updatable[Route]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped