Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.54 KB

blocks.md

File metadata and controls

24 lines (16 loc) · 1.54 KB

Blocks

Overview

The Block endpoints in the Hedera Mirror Node REST API allows developers to query block data on the Hedera network. These endpoints are essential for retrieving block metadata, including hashes, timestamps, and transactions within blocks.

Endpoints

The following Block endpoints are available:

Endpoint Description
GET /api/v1/blocks Retrieves a list of blocks on the network.
GET /api/v1/blocks/{hash_or_number} Fetches details of a specific block by hash or block number.

Blocks

{% swagger src="https://raw.githubusercontent.com/hiero-ledger/hiero-mirror-node/main/hedera-mirror-rest/api/v1/openapi.yml" path="/api/v1/blocks" method="get" %} https://raw.githubusercontent.com/hiero-ledger/hiero-mirror-node/main/hedera-mirror-rest/api/v1/openapi.yml {% endswagger %}

{% swagger src="https://raw.githubusercontent.com/hiero-ledger/hiero-mirror-node/main/hedera-mirror-rest/api/v1/openapi.yml" path="/api/v1/blocks/{hashOrNumber}" method="get" %} https://raw.githubusercontent.com/hiero-ledger/hiero-mirror-node/main/hedera-mirror-rest/api/v1/openapi.yml {% endswagger %}