DotNetLightning


ShortChannelId Type

Unique index for the tx output in the blockchain (as long as there is no competing fork). In LN, this is used for funding txo. which corresponds 1-by-1 to the channel. Thus works as a unique identifier for the specific channel. This is only used when the channel is confirmed enough (thus "opened"). Before it gets open, ChannelId is used instead, which is a xor of the tx hash and the output index.

Record fields

Record Field Description

BlockHeight

Full Usage: BlockHeight

Field type: BlockHeight
Field type: BlockHeight

BlockIndex

Full Usage: BlockIndex

Field type: TxIndexInBlock
Field type: TxIndexInBlock

TxOutIndex

Full Usage: TxOutIndex

Field type: TxOutIndex
Field type: TxOutIndex

Instance members

Instance member Description

this.AsString

Full Usage: this.AsString

Returns: string
Returns: string

this.ToBytes

Full Usage: this.ToBytes

Returns: byte array
Returns: byte array

this.ToUInt64

Full Usage: this.ToUInt64

Returns: uint64
Returns: uint64

Static members

Static member Description

ShortChannelId.From8Bytes(b)

Full Usage: ShortChannelId.From8Bytes(b)

Parameters:
    b : byte array

Returns: ShortChannelId
b : byte array
Returns: ShortChannelId

ShortChannelId.FromUInt64(rawData)

Full Usage: ShortChannelId.FromUInt64(rawData)

Parameters:
    rawData : uint64

Returns: ShortChannelId
rawData : uint64
Returns: ShortChannelId

ShortChannelId.ParseUnsafe(s)

Full Usage: ShortChannelId.ParseUnsafe(s)

Parameters:
    s : string

Returns: ShortChannelId
s : string
Returns: ShortChannelId

ShortChannelId.TryParse(s)

Full Usage: ShortChannelId.TryParse(s)

Parameters:
    s : string

Returns: Result<ShortChannelId, string>
s : string
Returns: Result<ShortChannelId, string>