public class BlockQuery extends Object
BlockQueryType
Modifier and Type | Field and Description |
---|---|
static BlockQuery |
BEST
Creates
BlockQuery representing Best Block on the connected node |
static BlockQuery |
LAST_FINAL
Creates
BlockQuery representing Last Finalized Block on the connected node |
Modifier and Type | Method and Description |
---|---|
Hash |
getBlockHash()
Hash of the block.
|
BlocksAtHeightRequest |
getHeight() |
BlockQueryType |
getType()
Type of
BlockQuery |
static BlockQuery |
HASH(Hash blockHash)
Creates a new
BlockQuery from input block Hash |
static BlockQuery |
HEIGHT(BlocksAtHeightRequest height) |
String |
toString() |
public static final BlockQuery BEST
BlockQuery
representing Best Block on the connected nodepublic static final BlockQuery LAST_FINAL
BlockQuery
representing Last Finalized Block on the connected nodepublic static BlockQuery HASH(Hash blockHash)
BlockQuery
from input block Hash
blockHash
- Block Hash
BlockQuery
public static BlockQuery HEIGHT(BlocksAtHeightRequest height)
public BlockQueryType getType()
BlockQuery
@Nullable public Hash getBlockHash()
@Nullable public BlocksAtHeightRequest getHeight()
Copyright © 2025. All rights reserved.