Table of Contents

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

channelId ChannelId

The channel ID.

locktime uint

The locktime.

feerate uint

The feerate.

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

ChannelId

Feerate

The feerate.

public uint Feerate { get; }

Property Value

uint

Locktime

The locktime.

public uint Locktime { get; }

Property Value

uint

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<TxInitRbfPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The 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 Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.

See Also