---
title: "returns a block by hash."
method: GET
path: "/block/{shard}/by-hash/{hash}"
tags: ["block"]
---

# returns a block by hash.

`GET /block/{shard}/by-hash/{hash}`

## Path parameters

- `hash` string, required
- `shard` integer, required

## Response `200`

successful operation

- GenericResponse
  - `data` object
  - `error` string
  - `code` string

## Changes

- **2023-02-09** `f5970dfcecba` — 1 breaking, 1 info
  - added the new path request parameter `shard`
  - for the `path` request parameter `hash`, the type/format was generalized from `integer`/`` to `string`/``
- **2023-02-08** `82d543636074` — 1 breaking, 1 warning
  - for the `path` request parameter `hash`, the type/format was changed from `string`/`` to `integer`/``
  - deleted the `path` request parameter `shard`

[Change history](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/changes/block/:shard/by-hash/:hash/get.md)

---

[API](https://skmtc.dev/multiversx/apis/multiversx-gateway-api.md) · [All operations](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multiversx/multiversx-gateway-api/revisions/44c49bc12621/schema)
