AcceptChannel

data class AcceptChannel(temporaryChannelId: ByteVector32, dustLimitSatoshis: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserveSatoshis: Satoshi, htlcMinimumMsat: MilliSatoshi, minimumDepth: Long, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubkey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, firstPerCommitmentPoint: PublicKey, tlvStream: TlvStream<ChannelTlv>) : ChannelMessage, HasTemporaryChannelId

Types

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

Functions

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

Properties

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
firstPerCommitmentPoint
Link copied to clipboard
common
val firstPerCommitmentPoint: PublicKey
fundingPubkey
Link copied to clipboard
common
val fundingPubkey: PublicKey
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
minimumDepth
Link copied to clipboard
common
val minimumDepth: Long
paymentBasepoint
Link copied to clipboard
common
val paymentBasepoint: PublicKey
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.