> ## 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 | Plasma

> Plasma API method that returns information about a block by block hash. data — the hash of the block boolean — if true, returns full transaction objects.

Plasma API method that returns information about a block by block hash.

## Parameters

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

## Response

* `object` — a block object, or `null` when no block was found

## `eth_getBlockByHash` code examples

```javascript ethers.js theme={"system"}
const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_getBlockByHash", []);
  console.log(result);
}

call();
```

```python web3.py theme={"system"}
from web3 import Web3

node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))

# Make the call
# Add your parameters here
# result = web3.eth.<method_name>(...)
print(result)
```

```shell cURL theme={"system"}
curl -X POST "CHAINSTACK_NODE_URL" \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockByHash",
    "params": [],
    "id": 1
  }'
```


## OpenAPI

````yaml openapi/plasma_node_api/blocks_info/eth_getBlockByHash.json POST /mt_c524ad9781ae5dccd9ac6f5b0370e
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://plasma-mainnet.core.chainstack.com
security: []
paths:
  /mt_c524ad9781ae5dccd9ac6f5b0370e:
    post:
      tags:
        - upload
      summary: eth_getBlockByHash
      operationId: 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
                        title: Block hash
                        description: Hash of the block.
                      - type: boolean
                        title: Show transaction details
                        description: >-
                          If true, returns full transaction objects. If false,
                          returns only hashes.
                  default:
                    - >-
                      0x0000000000000000000000000000000000000000000000000000000000000000
                    - false
      responses:
        '200':
          description: Returns information about a block by hash.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    nullable: true

````