OpenChannel

data class OpenChannel(chainHash: ByteVector32, temporaryChannelId: ByteVector32, fundingSatoshis: Satoshi, pushMsat: MilliSatoshi, dustLimitSatoshis: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserveSatoshis: Satoshi, htlcMinimumMsat: MilliSatoshi, feeratePerKw: FeeratePerKw, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubkey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, firstPerCommitmentPoint: PublicKey, channelFlags: Byte, tlvStream: TlvStream<ChannelTlv>) : ChannelMessage, HasTemporaryChannelId, HasChainHash

Types

Companion
Link copied to clipboard
common
object Companion : LightningMessageReader<OpenChannel>

Functions

write
Link copied to clipboard
common
open fun write(): ByteArray
open override fun write(out: Output)

Properties

chainHash
Link copied to clipboard
common
open override val chainHash: ByteVector32
channelFlags
Link copied to clipboard
common
val channelFlags: Byte
channelReserveSatoshis
Link copied to clipboard
common
val channelReserveSatoshis: Satoshi
channelType
Link copied to clipboard
common
val channelType: ChannelType?
delayedPaymentBasepoint
Link copied to clipboard
common
val delayedPaymentBasepoint: PublicKey
dustLimitSatoshis
Link copied to clipboard
common
val dustLimitSatoshis: Satoshi
feeratePerKw
Link copied to clipboard
common
val feeratePerKw: FeeratePerKw
firstPerCommitmentPoint
Link copied to clipboard
common
val firstPerCommitmentPoint: PublicKey
fundingPubkey
Link copied to clipboard
common
val fundingPubkey: PublicKey
fundingSatoshis
Link copied to clipboard
common
val fundingSatoshis: Satoshi
htlcBasepoint
Link copied to clipboard
common
val htlcBasepoint: PublicKey
htlcMinimumMsat
Link copied to clipboard
common
val htlcMinimumMsat: MilliSatoshi
maxAcceptedHtlcs
Link copied to clipboard
common
val maxAcceptedHtlcs: Int
maxHtlcValueInFlightMsat
Link copied to clipboard
common
val maxHtlcValueInFlightMsat: Long
paymentBasepoint
Link copied to clipboard
common
val paymentBasepoint: PublicKey
pushMsat
Link copied to clipboard
common
val pushMsat: MilliSatoshi
revocationBasepoint
Link copied to clipboard
common
val revocationBasepoint: PublicKey
temporaryChannelId
Link copied to clipboard
common
open override val temporaryChannelId: ByteVector32
tlvStream
Link copied to clipboard
common
val tlvStream: TlvStream<ChannelTlv>
toSelfDelay
Link copied to clipboard
common
val toSelfDelay: CltvExpiryDelta
type
Link copied to clipboard
common
open override val type: Long

Once decrypted, lightning messages start with a 2-byte type that uniquely identifies the kind of message received. See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format.