> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getBlockByHash | Monad

> Monad API method that returns information about a block by block hash. Monad developers can call eth_getBlockByHash via Chainstack.

Monad API method that returns information about a block by block hash. This method allows you to retrieve detailed information about a specific block using its unique hash identifier.

## Parameters

* `data` — the 32-byte hash of the block.
* `boolean` — if `true`, returns the full transaction objects; if `false`, returns only the hashes of the transactions.

## Response

* `result` — the block object, or `null` when no block was found. See [eth\_getBlockByNumber](https://docs.chainstack.com/reference/monad-getblockbynumber.md) for the full response structure.

## `eth_getBlockByHash` code examples

```javascript ethers.js theme={"system"}
const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

async function getBlockByHash() {
  const blockHash = "0xca92186826cafb24b161537b96b287e8e1d57427343459c06d9e23eada1436f6";
  const block = await provider.getBlock(blockHash);
  console.log(block);
}

getBlockByHash();
```

```python web3.py theme={"system"}
from web3 import Web3

node_url = "CHAINSTACK_NODE_URL"

web3 = Web3(Web3.HTTPProvider(node_url))
block_hash = "0xca92186826cafb24b161537b96b287e8e1d57427343459c06d9e23eada1436f6"
block = web3.eth.get_block(block_hash)
print(block)
```

## Use case

A practical use case for `eth_getBlockByHash` is verifying block data when you have a specific block hash from a transaction receipt or external source.


## OpenAPI

````yaml openapi/monad_node_api/blocks_info/eth_getBlockByHash.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e
security: []
paths:
  /:
    post:
      tags:
        - Blocks info
      summary: eth_getBlockByHash
      operationId: eth_getBlockByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockByHash
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        description: The block hash
                      - type: boolean
                        description: >-
                          If true, returns full transaction objects; if false,
                          returns only transaction hashes
                  default:
                    - >-
                      0xca92186826cafb24b161537b96b287e8e1d57427343459c06d9e23eada1436f6
                    - false
      responses:
        '200':
          description: The block information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    nullable: true

````