Packages

final case class Hop(chanId: UInt64 = lnrpc.Hop._typemapper_chanId.toCustom(0L), chanCapacity: Long = 0L, amtToForward: Long = 0L, fee: Long = 0L, expiry: UInt32 = lnrpc.Hop._typemapper_expiry.toCustom(0), amtToForwardMsat: Long = 0L, feeMsat: Long = 0L, pubKey: String = "", tlvPayload: Boolean = false, mppRecord: Option[MPPRecord] = _root_.scala.None, ampRecord: Option[AMPRecord] = _root_.scala.None, customRecords: Map[UInt64, ByteString] = _root_.scala.collection.immutable.Map.empty, metadata: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Hop] with Product with Serializable

chanId

The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.

pubKey

An optional public key of the hop. If the public key is given, the payment can be executed without relying on a copy of the channel graph.

tlvPayload

If set to true, then this hop will be encoded using the new variable length TLV format. Note that if any custom tlv_records below are specified, then this field MUST be set to true for them to be encoded properly.

mppRecord

An optional TLV record that signals the use of an MPP payment. If present, the receiver will enforce that the same mpp_record is included in the final hop payload of all non-zero payments in the HTLC set. If empty, a regular single-shot payment is or was attempted.

ampRecord

An optional TLV record that signals the use of an AMP payment. If present, the receiver will treat all received payments including the same (payment_addr, set_id) pair as being part of one logical payment. The payment will be settled by XORing the root_share's together and deriving the child hashes and preimages according to BOLT XX. Must be used in conjunction with mpp_record.

customRecords

An optional set of key-value TLV records. This is useful within the context of the SendToRoute call as it allows callers to specify arbitrary K-V pairs to drop off at each hop within the onion.

metadata

The payment metadata to send along with the payment to the payee.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hop
  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 Hop(chanId: UInt64 = lnrpc.Hop._typemapper_chanId.toCustom(0L), chanCapacity: Long = 0L, amtToForward: Long = 0L, fee: Long = 0L, expiry: UInt32 = lnrpc.Hop._typemapper_expiry.toCustom(0), amtToForwardMsat: Long = 0L, feeMsat: Long = 0L, pubKey: String = "", tlvPayload: Boolean = false, mppRecord: Option[MPPRecord] = _root_.scala.None, ampRecord: Option[AMPRecord] = _root_.scala.None, customRecords: Map[UInt64, ByteString] = _root_.scala.collection.immutable.Map.empty, metadata: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    chanId

    The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.

    pubKey

    An optional public key of the hop. If the public key is given, the payment can be executed without relying on a copy of the channel graph.

    tlvPayload

    If set to true, then this hop will be encoded using the new variable length TLV format. Note that if any custom tlv_records below are specified, then this field MUST be set to true for them to be encoded properly.

    mppRecord

    An optional TLV record that signals the use of an MPP payment. If present, the receiver will enforce that the same mpp_record is included in the final hop payload of all non-zero payments in the HTLC set. If empty, a regular single-shot payment is or was attempted.

    ampRecord

    An optional TLV record that signals the use of an AMP payment. If present, the receiver will treat all received payments including the same (payment_addr, set_id) pair as being part of one logical payment. The payment will be settled by XORing the root_share's together and deriving the child hashes and preimages according to BOLT XX. Must be used in conjunction with mpp_record.

    customRecords

    An optional set of key-value TLV records. This is useful within the context of the SendToRoute call as it allows callers to specify arbitrary K-V pairs to drop off at each hop within the onion.

    metadata

    The payment metadata to send along with the payment to the payee.

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 addAllCustomRecords(__vs: Iterable[(UInt64, ByteString)]): Hop
  5. def addCustomRecords(__vs: (UInt64, ByteString)*): Hop
  6. val ampRecord: Option[AMPRecord]
  7. val amtToForwardMsat: Long
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val chanId: UInt64
  10. def clearAmpRecord: Hop
  11. def clearCustomRecords: Hop
  12. def clearMppRecord: Hop
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. def companion: Hop.type
    Definition Classes
    Hop → GeneratedMessage
  15. val customRecords: Map[UInt64, ByteString]
  16. def discardUnknownFields: Hop
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. val expiry: UInt32
  19. val feeMsat: Long
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def getAmpRecord: AMPRecord
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Hop → GeneratedMessage
  24. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Hop → GeneratedMessage
  25. def getMppRecord: MPPRecord
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. val metadata: ByteString
  28. val mppRecord: Option[MPPRecord]
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. val pubKey: String
  34. def serializedSize: Int
    Definition Classes
    Hop → GeneratedMessage
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  37. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  38. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  39. def toProtoString: String
    Definition Classes
    Hop → GeneratedMessage
  40. val unknownFields: UnknownFieldSet
  41. def update(ms: (Lens[Hop, Hop]) => Mutation[Hop]*): Hop
    Definition Classes
    Updatable
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. def withAmpRecord(__v: AMPRecord): Hop
  46. def withAmtToForward(__v: Long): Hop
  47. def withAmtToForwardMsat(__v: Long): Hop
  48. def withChanCapacity(__v: Long): Hop
  49. def withChanId(__v: UInt64): Hop
  50. def withCustomRecords(__v: Map[UInt64, ByteString]): Hop
  51. def withExpiry(__v: UInt32): Hop
  52. def withFee(__v: Long): Hop
  53. def withFeeMsat(__v: Long): Hop
  54. def withMetadata(__v: ByteString): Hop
  55. def withMppRecord(__v: MPPRecord): Hop
  56. def withPubKey(__v: String): Hop
  57. def withTlvPayload(__v: Boolean): Hop
  58. def withUnknownFields(__v: UnknownFieldSet): Hop
  59. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  60. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Hop → GeneratedMessage
  61. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. val amtToForward: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  2. val chanCapacity: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  3. val fee: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  4. val tlvPayload: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

Inherited from Updatable[Hop]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped