Block Repository¶
BlockRepository provides APIs for querying block information from a Hiero Mirror Node, including retrieving all blocks and searching blocks by block number or hash.
Methods¶
| Method | Description |
|---|---|
findAll() |
Retrieves a paginated list of blocks from the Mirror Node. |
findByNumber(long number) |
Retrieves a block using its block number. |
findByHash(String hash) |
Retrieves a block using its hash value. |