Table of Contents

Class RelativeHeight

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

Query relative to an explicit genesis index.

public sealed record RelativeHeight : IBlockHeight, IEquatable<RelativeHeight>
Inheritance
RelativeHeight
Implements
Inherited Members

Constructors

RelativeHeight(ulong, uint, bool)

Query relative to an explicit genesis index.

public RelativeHeight(ulong Height, uint GenesisIndex, bool Restrict)

Parameters

Height ulong

Height starting from the genesis block at the genesis index.

GenesisIndex uint

Genesis index to start from.

Restrict bool

Whether to return results only from the specified genesis index (true), or allow results from more recent genesis indices as well (false).

Properties

GenesisIndex

Genesis index to start from.

public uint GenesisIndex { get; init; }

Property Value

uint

Height

Height starting from the genesis block at the genesis index.

public ulong Height { get; init; }

Property Value

ulong

Restrict

Whether to return results only from the specified genesis index (true), or allow results from more recent genesis indices as well (false).

public bool Restrict { get; init; }

Property Value

bool

Methods

Into()

Convert a RelativeHeight into a BlocksAtHeightRequest.

public BlocksAtHeightRequest Into()

Returns

BlocksAtHeightRequest