---
title: "returns a block by hash, with transactions included."
method: GET
path: "/block/{shard}/by-hash/{hash}?withTxs=true&withLogs=true&forHyperblock=true"
tags: ["block"]
---

# returns a block by hash, with transactions included.

`GET /block/{shard}/by-hash/{hash}?withTxs=true&withLogs=true&forHyperblock=true`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

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

## Response `200`

successful operation

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

## Changes

- **2025-01-09** `101658adc398`: 1 info
  - endpoint added
- **2023-02-08** `82d543636074`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/changes/block/:shard/by-hash/:hash%3FwithTxs=true&withLogs=true&forHyperblock=true/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)
