---
title: "returns the miniblock with the given hash following the protocol structure"
method: GET
path: "/internal/{shard}/raw/miniblock/by-hash/{hash}/epoch/{epoch}"
tags: ["internal"]
---

# returns the miniblock with the given hash following the protocol structure

`GET /internal/{shard}/raw/miniblock/by-hash/{hash}/epoch/{epoch}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/multiversx/apis/multiversx-gateway-api/docs/internal/:shard/raw/miniblock/by-hash/:hash/epoch/:epoch/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

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

## Response `200`

successful operation

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

## Other responses

- `400`: validation error

## Changes

- **2023-02-09** `eaf76635324d`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2023-02-08** `82d543636074`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Operation history](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/changes/internal/:shard/raw/miniblock/by-hash/:hash/epoch/:epoch/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.dev/multiversx/apis/multiversx-gateway-api/revisions/44c49bc12621?raw)
