Class TxAckRbfPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents the payload for the tx_ack_rbf message.
public class TxAckRbfPayload : IMessagePayload
- Inheritance
-
TxAckRbfPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the TxAckRbfPayload class.
Constructors
TxAckRbfPayload(ChannelId)
Represents the payload for the tx_ack_rbf message.
public TxAckRbfPayload(ChannelId channelId)
Parameters
channelId
ChannelIdThe channel ID.
Remarks
Initializes a new instance of the TxAckRbfPayload class.
Properties
ChannelId
Gets the channel ID.
public ChannelId ChannelId { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserializes the payload from a stream.
public static Task<TxAckRbfPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxAckRbfPayload>
The deserialized payload.
Exceptions
- PayloadSerializationException
Error deserializing Payload
SerializeAsync(Stream)
Serializes the message payload to a stream.
public Task SerializeAsync(Stream stream)
Parameters
stream
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.