Packages

final case class Channel(active: Boolean = false, remotePubkey: String = "", channelPoint: String = "", chanId: Long = 0L, capacity: Long = 0L, localBalance: Long = 0L, remoteBalance: Long = 0L, commitFee: Long = 0L, commitWeight: Long = 0L, feePerKw: Long = 0L, unsettledBalance: Long = 0L, totalSatoshisSent: Long = 0L, totalSatoshisReceived: Long = 0L, numUpdates: Long = 0L, pendingHtlcs: Seq[HTLC] = _root_.scala.Seq.empty, csvDelay: Int = 0, private: Boolean = false, initiator: Boolean = false, chanStatusFlags: String = "", localChanReserveSat: Long = 0L, remoteChanReserveSat: Long = 0L, staticRemoteKey: Boolean = false, commitmentType: CommitmentType = lnrpc.CommitmentType.LEGACY, lifetime: Long = 0L, uptime: Long = 0L, closeAddress: String = "", pushAmountSat: Long = 0L, thawHeight: Int = 0, localConstraints: Option[ChannelConstraints] = _root_.scala.None, remoteConstraints: Option[ChannelConstraints] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Channel] with Product with Serializable

active

Whether this channel is active or not

remotePubkey

The identity pubkey of the remote node

channelPoint

The outpoint (txid:index) of the funding transaction. With this value, Bob will be able to generate a signature for Alice's version of the commitment transaction.

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.

capacity

The total amount of funds held in this channel

localBalance

This node's current balance in this channel

remoteBalance

The counterparty's current balance in this channel

commitFee

The amount calculated to be paid in fees for the current set of commitment transactions. The fee amount is persisted with the channel in order to allow the fee amount to be removed and recalculated with each channel state update, including updates that happen after a system restart.

commitWeight

The weight of the commitment transaction

feePerKw

The required number of satoshis per kilo-weight that the requester will pay at all times, for both the funding transaction and commitment transaction. This value can later be updated once the channel is open.

unsettledBalance

The unsettled balance in this channel

totalSatoshisSent

The total number of satoshis we've sent within this channel.

totalSatoshisReceived

The total number of satoshis we've received within this channel.

numUpdates

The total number of updates conducted within this channel.

pendingHtlcs

The list of active, uncleared HTLCs currently pending within the channel.

csvDelay

Deprecated. The CSV delay expressed in relative blocks. If the channel is force closed, we will need to wait for this many blocks before we can regain our funds.

private

Whether this channel is advertised to the network or not.

initiator

True if we were the ones that created the channel.

chanStatusFlags

A set of flags showing the current state of the channel.

localChanReserveSat

Deprecated. The minimum satoshis this node is required to reserve in its balance.

remoteChanReserveSat

Deprecated. The minimum satoshis the other node is required to reserve in its balance.

staticRemoteKey

Deprecated. Use commitment_type.

commitmentType

The commitment type used by this channel.

lifetime

The number of seconds that the channel has been monitored by the channel scoring system. Scores are currently not persisted, so this value may be less than the lifetime of the channel [EXPERIMENTAL].

uptime

The number of seconds that the remote peer has been observed as being online by the channel scoring system over the lifetime of the channel [EXPERIMENTAL].

closeAddress

Close address is the address that we will enforce payout to on cooperative close if the channel was opened utilizing option upfront shutdown. This value can be set on channel open by setting close_address in an open channel request. If this value is not set, you can still choose a payout address by cooperatively closing with the delivery_address field set.

pushAmountSat

The amount that the initiator of the channel optionally pushed to the remote party on channel open. This amount will be zero if the channel initiator did not push any funds to the remote peer. If the initiator field is true, we pushed this amount to our peer, if it is false, the remote peer pushed this amount to us.

thawHeight

This uint32 indicates if this channel is to be considered 'frozen'. A frozen channel doest not allow a cooperative channel close by the initiator. The thaw_height is the height that this restriction stops applying to the channel. This field is optional, not setting it or using a value of zero will mean the channel has no additional restrictions. The height can be interpreted in two ways: as a relative height if the value is less than 500,000, or as an absolute height otherwise.

localConstraints

List constraints for the local node.

remoteConstraints

List constraints for the remote node.

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

Instance Constructors

  1. new Channel(active: Boolean = false, remotePubkey: String = "", channelPoint: String = "", chanId: Long = 0L, capacity: Long = 0L, localBalance: Long = 0L, remoteBalance: Long = 0L, commitFee: Long = 0L, commitWeight: Long = 0L, feePerKw: Long = 0L, unsettledBalance: Long = 0L, totalSatoshisSent: Long = 0L, totalSatoshisReceived: Long = 0L, numUpdates: Long = 0L, pendingHtlcs: Seq[HTLC] = _root_.scala.Seq.empty, csvDelay: Int = 0, private: Boolean = false, initiator: Boolean = false, chanStatusFlags: String = "", localChanReserveSat: Long = 0L, remoteChanReserveSat: Long = 0L, staticRemoteKey: Boolean = false, commitmentType: CommitmentType = lnrpc.CommitmentType.LEGACY, lifetime: Long = 0L, uptime: Long = 0L, closeAddress: String = "", pushAmountSat: Long = 0L, thawHeight: Int = 0, localConstraints: Option[ChannelConstraints] = _root_.scala.None, remoteConstraints: Option[ChannelConstraints] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)

    active

    Whether this channel is active or not

    remotePubkey

    The identity pubkey of the remote node

    channelPoint

    The outpoint (txid:index) of the funding transaction. With this value, Bob will be able to generate a signature for Alice's version of the commitment transaction.

    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.

    capacity

    The total amount of funds held in this channel

    localBalance

    This node's current balance in this channel

    remoteBalance

    The counterparty's current balance in this channel

    commitFee

    The amount calculated to be paid in fees for the current set of commitment transactions. The fee amount is persisted with the channel in order to allow the fee amount to be removed and recalculated with each channel state update, including updates that happen after a system restart.

    commitWeight

    The weight of the commitment transaction

    feePerKw

    The required number of satoshis per kilo-weight that the requester will pay at all times, for both the funding transaction and commitment transaction. This value can later be updated once the channel is open.

    unsettledBalance

    The unsettled balance in this channel

    totalSatoshisSent

    The total number of satoshis we've sent within this channel.

    totalSatoshisReceived

    The total number of satoshis we've received within this channel.

    numUpdates

    The total number of updates conducted within this channel.

    pendingHtlcs

    The list of active, uncleared HTLCs currently pending within the channel.

    csvDelay

    Deprecated. The CSV delay expressed in relative blocks. If the channel is force closed, we will need to wait for this many blocks before we can regain our funds.

    private

    Whether this channel is advertised to the network or not.

    initiator

    True if we were the ones that created the channel.

    chanStatusFlags

    A set of flags showing the current state of the channel.

    localChanReserveSat

    Deprecated. The minimum satoshis this node is required to reserve in its balance.

    remoteChanReserveSat

    Deprecated. The minimum satoshis the other node is required to reserve in its balance.

    staticRemoteKey

    Deprecated. Use commitment_type.

    commitmentType

    The commitment type used by this channel.

    lifetime

    The number of seconds that the channel has been monitored by the channel scoring system. Scores are currently not persisted, so this value may be less than the lifetime of the channel [EXPERIMENTAL].

    uptime

    The number of seconds that the remote peer has been observed as being online by the channel scoring system over the lifetime of the channel [EXPERIMENTAL].

    closeAddress

    Close address is the address that we will enforce payout to on cooperative close if the channel was opened utilizing option upfront shutdown. This value can be set on channel open by setting close_address in an open channel request. If this value is not set, you can still choose a payout address by cooperatively closing with the delivery_address field set.

    pushAmountSat

    The amount that the initiator of the channel optionally pushed to the remote party on channel open. This amount will be zero if the channel initiator did not push any funds to the remote peer. If the initiator field is true, we pushed this amount to our peer, if it is false, the remote peer pushed this amount to us.

    thawHeight

    This uint32 indicates if this channel is to be considered 'frozen'. A frozen channel doest not allow a cooperative channel close by the initiator. The thaw_height is the height that this restriction stops applying to the channel. This field is optional, not setting it or using a value of zero will mean the channel has no additional restrictions. The height can be interpreted in two ways: as a relative height if the value is less than 500,000, or as an absolute height otherwise.

    localConstraints

    List constraints for the local node.

    remoteConstraints

    List constraints for the remote node.

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. val active: Boolean
  5. def addAllPendingHtlcs(__vs: Iterable[HTLC]): Channel
  6. def addPendingHtlcs(__vs: HTLC*): Channel
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val capacity: Long
  9. val chanId: Long
  10. val chanStatusFlags: String
  11. val channelPoint: String
  12. def clearLocalConstraints: Channel
  13. def clearPendingHtlcs: Channel
  14. def clearRemoteConstraints: Channel
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  16. val closeAddress: String
  17. val commitFee: Long
  18. val commitWeight: Long
  19. val commitmentType: CommitmentType
  20. def companion: Channel.type
    Definition Classes
    Channel → GeneratedMessage
  21. def discardUnknownFields: Channel
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. val feePerKw: Long
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Channel → GeneratedMessage
  27. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Channel → GeneratedMessage
  28. def getLocalConstraints: ChannelConstraints
  29. def getRemoteConstraints: ChannelConstraints
  30. val initiator: Boolean
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. val lifetime: Long
  33. val localBalance: Long
  34. val localConstraints: Option[ChannelConstraints]
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. val numUpdates: Long
  39. val pendingHtlcs: Seq[HTLC]
  40. val private: Boolean
  41. val pushAmountSat: Long
  42. val remoteBalance: Long
  43. val remoteConstraints: Option[ChannelConstraints]
  44. val remotePubkey: String
  45. def serializedSize: Int
    Definition Classes
    Channel → GeneratedMessage
  46. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  47. val thawHeight: Int
  48. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  49. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  50. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  51. def toProtoString: String
    Definition Classes
    Channel → GeneratedMessage
  52. val totalSatoshisReceived: Long
  53. val totalSatoshisSent: Long
  54. val unknownFields: UnknownFieldSet
  55. val unsettledBalance: Long
  56. def update(ms: (Lens[Channel, Channel]) ⇒ Mutation[Channel]*): Channel
    Definition Classes
    Updatable
  57. val uptime: Long
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  61. def withActive(__v: Boolean): Channel
  62. def withCapacity(__v: Long): Channel
  63. def withChanId(__v: Long): Channel
  64. def withChanStatusFlags(__v: String): Channel
  65. def withChannelPoint(__v: String): Channel
  66. def withCloseAddress(__v: String): Channel
  67. def withCommitFee(__v: Long): Channel
  68. def withCommitWeight(__v: Long): Channel
  69. def withCommitmentType(__v: CommitmentType): Channel
  70. def withCsvDelay(__v: Int): Channel
  71. def withFeePerKw(__v: Long): Channel
  72. def withInitiator(__v: Boolean): Channel
  73. def withLifetime(__v: Long): Channel
  74. def withLocalBalance(__v: Long): Channel
  75. def withLocalChanReserveSat(__v: Long): Channel
  76. def withLocalConstraints(__v: ChannelConstraints): Channel
  77. def withNumUpdates(__v: Long): Channel
  78. def withPendingHtlcs(__v: Seq[HTLC]): Channel
  79. def withPrivate(__v: Boolean): Channel
  80. def withPushAmountSat(__v: Long): Channel
  81. def withRemoteBalance(__v: Long): Channel
  82. def withRemoteChanReserveSat(__v: Long): Channel
  83. def withRemoteConstraints(__v: ChannelConstraints): Channel
  84. def withRemotePubkey(__v: String): Channel
  85. def withStaticRemoteKey(__v: Boolean): Channel
  86. def withThawHeight(__v: Int): Channel
  87. def withTotalSatoshisReceived(__v: Long): Channel
  88. def withTotalSatoshisSent(__v: Long): Channel
  89. def withUnknownFields(__v: UnknownFieldSet): Channel
  90. def withUnsettledBalance(__v: Long): Channel
  91. def withUptime(__v: Long): Channel
  92. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  93. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Channel → GeneratedMessage
  94. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. val csvDelay: Int
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  2. val localChanReserveSat: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  3. val remoteChanReserveSat: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  4. val staticRemoteKey: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

Inherited from Updatable[Channel]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped