Modifier and Type | Class and Description |
---|---|
static class |
EpochQuery.EpochQueryType |
Modifier and Type | Method and Description |
---|---|
static EpochQuery |
BLOCK_HASH(BlockQuery block)
Query for the epoch of a specified block.
|
BlockQuery |
getBlockHashInput()
Block with epoch to query.
|
Epoch |
getEpoch()
Epoch to query.
|
int |
getGenesisIndex()
Genesis index to query at.
|
@NonNull EpochQuery.EpochQueryType |
getType()
Type of
EpochQuery |
static EpochQuery |
RELATIVE_EPOCH(int genesisIndex,
Epoch epoch)
Query by genesis index and epoch.
|
public static EpochQuery BLOCK_HASH(BlockQuery block)
block
- the specific block to query.public static EpochQuery RELATIVE_EPOCH(int genesisIndex, Epoch epoch)
genesisIndex
- the genesis index to query at. The query is restricted to this genesis index, and will not return results for other indices even if the epoch number is out of bounds.epoch
- the Epoch
to query at.@NonNull public @NonNull EpochQuery.EpochQueryType getType()
EpochQuery
@Nullable public BlockQuery getBlockHashInput()
BLOCK_HASH(com.concordium.sdk.requests.BlockQuery)
@Nullable public Epoch getEpoch()
RELATIVE_EPOCH(int, com.concordium.sdk.responses.Epoch)
public int getGenesisIndex()
RELATIVE_EPOCH(int, com.concordium.sdk.responses.Epoch)
Copyright © 2025. All rights reserved.