DotNetLightning


Service Type

Record fields

Record Field Description

Name

Full Usage: Name

Field type: string
Field type: string

Price

Full Usage: Price

Field type: LNMoney option
Field type: LNMoney option

ServiceTier

Full Usage: ServiceTier

Field type: uint8
Field type: uint8

Static members

Static member Description

Service.Create(name, tier)

Full Usage: Service.Create(name, tier)

Parameters:
    name : string
    tier : uint8

Returns: Service
name : string
tier : uint8
Returns: Service

Service.EncodeToCaveat(services)

Full Usage: Service.EncodeToCaveat(services)

Parameters:
Returns: Result<Caveat, string>
services : IList<Service>
Returns: Result<Caveat, string>

Service.ParseMany(s)

Full Usage: Service.ParseMany(s)

Parameters:
    s : string

Returns: Result<ResizeArray<Service>, string>
s : string
Returns: Result<ResizeArray<Service>, string>