---
title: "Get Block By Hash"
method: POST
path: "/node/rest/eth_getBlockByHash"
tags: ["node"]
---

# Get Block By Hash

`POST /node/rest/eth_getBlockByHash`

## Request body

- BlockHashAndTrxParameterIn
  - `hash` string, required
  - `is_full_trx` boolean, required

## Response `200`

Successful Response

- Block
  - `number` union, required
    - string
    - integer
  - `hash` string, required
  - `parentHash` string, required
  - `nonce` string, required
  - `sha3Uncles` string, required
  - `logsBloom` string, required
  - `transactionsRoot` string, required
  - `stateRoot` string, required
  - `receiptsRoot` string, required
  - `miner` string, required
  - `difficulty` string, required
  - `totalDifficulty` string, required
  - `extraData` string, required
  - `size` string, required
  - `gasLimit` string, required
  - `gasUsed` string, required
  - `timestamp` string, required
  - `uncles` string[], required
  - `baseFeePerGas` string, nullable
  - `mixHash` string, required
  - `transactions` union[], required
    - union
      - Transaction
        - `hash` string, required
        - `nonce` string, nullable
        - `transactionIndex` string, required
        - `from` string, required
        - `to` string, nullable
        - `value` string, nullable
        - `gasPrice` string, nullable
        - `gas` string, nullable
        - `maxFeePerGas` string, nullable
        - `maxPriorityFeePerGas` string, nullable
        - `chainId` string, nullable
        - `accessList` unknown[], nullable
          - unknown
        - `blockHash` string, required
        - `blockNumber` string, required
      - string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/watchdata/apis/fastapi.md) · [All operations](https://skmtc.dev/watchdata/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/watchdata/fastapi/revisions/95860adeeaf7/schema)
