---
title: "Get a block hash by height."
method: GET
path: "/api/v2/block-index/{height}"
tags: ["Blocks"]
---

# Get a block hash by height.

`GET /api/v2/block-index/{height}`

Returns the block hash for a height on the backend main chain.
Blockbook follows the backend main chain; after a rollback or reorg,
height lookups resolve to the current main-chain block.

Load estimate: Low; indexed height-to-hash lookup.

## Path parameters

- `height` integer, required

## Response `200`

Block hash at the requested height.

- BlockHashResponse
  - `blockHash` string, required

## Other responses

- `default` — Public API error. Public validation errors are HTTP 400; internal errors are HTTP 500.

---

[API](https://skmtc.dev/trezor/apis/blockbook-api.md) · [All operations](https://skmtc.dev/trezor/apis/blockbook-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trezor/blockbook-api/revisions/01c375da86bc/schema)
