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
ulongHeight starting from the genesis block at the genesis index.
GenesisIndex
uintGenesis index to start from.
Restrict
boolWhether 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
Height
Height starting from the genesis block at the genesis index.
public ulong Height { get; init; }
Property Value
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
Methods
Into()
Convert a RelativeHeight into a BlocksAtHeightRequest.
public BlocksAtHeightRequest Into()