Class TxAddOutputMessage
- Namespace
- NLightning.Bolts.BOLT2.Messages
- Assembly
- NLightning.Bolts.dll
Represents a tx_add_output message.
public sealed class TxAddOutputMessage : BaseMessage, IMessage
- Inheritance
-
TxAddOutputMessage
- Implements
- Inherited Members
Remarks
The tx_add_output message is used to add an output to the transaction. The message type is 67.
Constructors
TxAddOutputMessage(TxAddOutputPayload)
Represents a tx_add_output message.
public TxAddOutputMessage(TxAddOutputPayload payload)
Parameters
payload
TxAddOutputPayloadThe tx_add_output payload.
Remarks
The tx_add_output message is used to add an output to the transaction. The message type is 67.
Properties
Payload
The payload of the message.
public TxAddOutputPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a TxAddOutputMessage from a stream.
public static Task<TxAddOutputMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxAddOutputMessage>
The deserialized TxAddOutputMessage.
Exceptions
- MessageSerializationException
Error deserializing TxAddOutputMessage