Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

RelayInfo Class

Contains a relay's public name, server time, and advertised operational limits.

public sealed record RelayInfo : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.RelayInfo>

Inheritance System.Object → ProtocolModel → RelayInfo

Implements System.IEquatable<RelayInfo>

Properties

RelayInfo.Limits Property

The relay's advertised retention and capacity limits.

public Meshline.Models.Protocol.RelayLimits Limits { get; init; }

Property Value

RelayLimits

RelayInfo.Name Property

The display name.

public string Name { get; init; }

Property Value

System.String

RelayInfo.RelayId Property

The relay's lowercase Neo script hash, including the 0x prefix.

public string RelayId { get; init; }

Property Value

System.String

RelayInfo.ServerTime Property

The relay's current time, in Unix seconds.

public long ServerTime { get; init; }

Property Value

System.Int64

Methods

RelayInfo.Validate(NetworkContext) Method

Validates the relay identifier, display name, server time, and advertised limits.

public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context=null);

Parameters

context NetworkContext

The optional network context passed to nested validation when needed; field-only validation may ignore it.

Returns

ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.