UpdateAddHtlc

data class UpdateAddHtlc(channelId: ByteVector32, id: Long, amountMsat: MilliSatoshi, paymentHash: ByteVector32, cltvExpiry: CltvExpiry, onionRoutingPacket: OnionRoutingPacket) : HtlcMessage, UpdateMessage, HasChannelId

Types

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

Functions

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

Properties

amountMsat
Link copied to clipboard
common
val amountMsat: MilliSatoshi
channelId
Link copied to clipboard
common
open override val channelId: ByteVector32
cltvExpiry
Link copied to clipboard
common
val cltvExpiry: CltvExpiry
id
Link copied to clipboard
common
val id: Long
onionRoutingPacket
Link copied to clipboard
common
val onionRoutingPacket: OnionRoutingPacket
paymentHash
Link copied to clipboard
common
val paymentHash: ByteVector32
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.