Table of Contents

Class ExpiryTimeTaggedField

Namespace
NLightning.Bolts.BOLT11.Types.TaggedFields
Assembly
NLightning.Bolts.dll

Tagged field for the expiry time

public sealed class ExpiryTimeTaggedField
Inheritance
ExpiryTimeTaggedField
Inherited Members

Remarks

The expiry time is the time in seconds after which the invoice is invalid.

Properties

Length

The length of the tagged field

public short Length { get; }

Property Value

short

Remarks

Length is represented by 10 bits, big-endian, and has a maximum value of 1023

Type

The type of the tagged field

public TaggedFieldTypes Type { get; }

Property Value

TaggedFieldTypes

Methods

IsValid()

Check if the tagged field is valid

public bool IsValid()

Returns

bool

True if the tagged field is valid

Remarks

This method should be implemented by the derived class

WriteToBitWriter(BitWriter)

Write the tagged field to a BitWriter

public void WriteToBitWriter(BitWriter bitWriter)

Parameters

bitWriter BitWriter

Remarks

This method should be implemented by the derived class

See Also

ITaggedField