> ## 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](/reference/monad-getblockbynumber) for the full response structure.

## `eth_getBlockByHash` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getBlockByHash() {
    const blockHash = "0xf3cf930f1b4d9637134d09f126c57c30c3f4f40edf10ba502486b26d14b4f944";
    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 = "0xf3cf930f1b4d9637134d09f126c57c30c3f4f40edf10ba502486b26d14b4f944"
  block = web3.eth.get_block(block_hash)
  print(block)
  ```
</CodeGroup>

## 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-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
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:
                    - >-
                      0xf3cf930f1b4d9637134d09f126c57c30c3f4f40edf10ba502486b26d14b4f944
                    - 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

````