Packages

final case class Channel(active: Boolean = false, remotePubkey: String = "", channelPoint: String = "", chanId: UInt64 = lnrpc.Channel._typemapper_chanId.toCustom(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: UInt64 = lnrpc.Channel._typemapper_numUpdates.toCustom(0L), pendingHtlcs: Seq[HTLC] = _root_.scala.Seq.empty, csvDelay: UInt32 = lnrpc.Channel._typemapper_csvDelay.toCustom(0), private: Boolean = false, initiator: Boolean = false, chanStatusFlags: String = "", localChanReserveSat: Long = 0L, remoteChanReserveSat: Long = 0L, staticRemoteKey: Boolean = false, commitmentType: CommitmentType = lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE, lifetime: Long = 0L, uptime: Long = 0L, closeAddress: String = "", pushAmountSat: UInt64 = lnrpc.Channel._typemapper_pushAmountSat.toCustom(0L), thawHeight: UInt32 = lnrpc.Channel._typemapper_thawHeight.toCustom(0), localConstraints: Option[ChannelConstraints] = _root_.scala.None, remoteConstraints: Option[ChannelConstraints] = _root_.scala.None, aliasScids: Seq[UInt64] = _root_.scala.Seq.empty, zeroConf: Boolean = false, zeroConfConfirmedScid: UInt64 = lnrpc.Channel._typemapper_zeroConfConfirmedScid.toCustom(0L), peerAlias: String = "", peerScidAlias: UInt64 = lnrpc.Channel._typemapper_peerScidAlias.toCustom(0L), memo: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) 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.

aliasScids

This lists out the set of alias short channel ids that exist for a channel. This may be empty.

zeroConf

Whether or not this is a zero-conf channel.

zeroConfConfirmedScid

This is the confirmed / on-chain zero-conf SCID.

peerAlias

The configured alias name of our peer.

peerScidAlias

This is the peer SCID alias.

memo

An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Channel
  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 Channel(active: Boolean = false, remotePubkey: String = "", channelPoint: String = "", chanId: UInt64 = lnrpc.Channel._typemapper_chanId.toCustom(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: UInt64 = lnrpc.Channel._typemapper_numUpdates.toCustom(0L), pendingHtlcs: Seq[HTLC] = _root_.scala.Seq.empty, csvDelay: UInt32 = lnrpc.Channel._typemapper_csvDelay.toCustom(0), private: Boolean = false, initiator: Boolean = false, chanStatusFlags: String = "", localChanReserveSat: Long = 0L, remoteChanReserveSat: Long = 0L, staticRemoteKey: Boolean = false, commitmentType: CommitmentType = lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE, lifetime: Long = 0L, uptime: Long = 0L, closeAddress: String = "", pushAmountSat: UInt64 = lnrpc.Channel._typemapper_pushAmountSat.toCustom(0L), thawHeight: UInt32 = lnrpc.Channel._typemapper_thawHeight.toCustom(0), localConstraints: Option[ChannelConstraints] = _root_.scala.None, remoteConstraints: Option[ChannelConstraints] = _root_.scala.None, aliasScids: Seq[UInt64] = _root_.scala.Seq.empty, zeroConf: Boolean = false, zeroConfConfirmedScid: UInt64 = lnrpc.Channel._typemapper_zeroConfConfirmedScid.toCustom(0L), peerAlias: String = "", peerScidAlias: UInt64 = lnrpc.Channel._typemapper_peerScidAlias.toCustom(0L), memo: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    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.

    aliasScids

    This lists out the set of alias short channel ids that exist for a channel. This may be empty.

    zeroConf

    Whether or not this is a zero-conf channel.

    zeroConfConfirmedScid

    This is the confirmed / on-chain zero-conf SCID.

    peerAlias

    The configured alias name of our peer.

    peerScidAlias

    This is the peer SCID alias.

    memo

    An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.

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

Deprecated Value Members

  1. val csvDelay: UInt32
    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 Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped