Class TxInitRbfPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents the payload for the tx_init_rbf message.
public class TxInitRbfPayload : IMessagePayload
- Inheritance
-
TxInitRbfPayload
- Implements
- Inherited Members
Remarks
The tx_init_rbf message is used to initialize a new RBF transaction.
Constructors
TxInitRbfPayload(ChannelId, uint, uint)
Represents the payload for the tx_init_rbf message.
public TxInitRbfPayload(ChannelId channelId, uint locktime, uint feerate)
Parameters
Remarks
The tx_init_rbf message is used to initialize a new RBF transaction.
- See Also
Properties
ChannelId
The channel ID.
public ChannelId ChannelId { get; }
Property Value
Feerate
The feerate.
public uint Feerate { get; }
Property Value
Locktime
The locktime.
public uint Locktime { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserializes the payload from a stream.
public static Task<TxInitRbfPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxInitRbfPayload>
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.