DotNetLightning


FallbackAddress Type

To make it network-agnostic, it holds data directly in bytes rather than NBitcoin.BitcoinAddress

Record fields

Record Field Description

Data

Full Usage: Data

Field type: byte array
Field type: byte array

Version

Full Usage: Version

Field type: uint8
Field type: uint8

Instance members

Instance member Description

this.ToAddress

Full Usage: this.ToAddress

Parameters:
    prefix : string

Returns: string
prefix : string
Returns: string

Static members

Static member Description

FallbackAddress.FromAddress(s)

Full Usage: FallbackAddress.FromAddress(s)

Parameters:
Returns: Result<FallbackAddress, string>
s : BitcoinAddress
Returns: Result<FallbackAddress, string>

FallbackAddress.FromBase58Address(addr)

Full Usage: FallbackAddress.FromBase58Address(addr)

Parameters:
    addr : string

Returns: Result<FallbackAddress, string>
addr : string
Returns: Result<FallbackAddress, string>

FallbackAddress.FromBech32Address(addrStr, network)

Full Usage: FallbackAddress.FromBech32Address(addrStr, network)

Parameters:
    addrStr : string
    network : Network

Returns: Result<FallbackAddress, string>
addrStr : string
network : Network
Returns: Result<FallbackAddress, string>

FallbackAddress.TryCreate(version, data)

Full Usage: FallbackAddress.TryCreate(version, data)

Parameters:
    version : byte
    data : byte array

Returns: Result<FallbackAddress, string>
version : byte
data : byte array
Returns: Result<FallbackAddress, string>