> ## 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_getHeaderByHash | Arc

> Arc API method that returns the block header by block hash. data — the hash of the block object — the block header object. On Arc.

Arc API method that returns the block header by block hash.

## Parameters

* `data` — the hash of the block

## Response

* `object` — the block header object

## `eth_getHeaderByHash` code examples

<CodeGroup>
  ```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_getHeaderByHash", ["0x6dabcf7ed4cf53e05054a4d671b19b7597740bce1042019ff31af68dde9c98a9"]);
    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_getHeaderByHash",
      "params": ["0x6dabcf7ed4cf53e05054a4d671b19b7597740bce1042019ff31af68dde9c98a9"],
      "id": 1
    }'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/arc_node_api/blocks_info/eth_getHeaderByHash.json POST /
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://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_getHeaderByHash
      operationId: eth_getHeaderByHash
      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_getHeaderByHash
                params:
                  type: array
                  default:
                    - >-
                      0x6dabcf7ed4cf53e05054a4d671b19b7597740bce1042019ff31af68dde9c98a9
                  items:
                    type: string
                    title: Block hash
                    description: Hash of the block.
      responses:
        '200':
          description: Returns the result of eth_getHeaderByHash.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      hash:
                        type: string
                      parentHash:
                        type: string
                      sha3Uncles:
                        type: string
                      miner:
                        type: string
                      stateRoot:
                        type: string
                      transactionsRoot:
                        type: string
                      receiptsRoot:
                        type: string
                      logsBloom:
                        type: string
                      difficulty:
                        type: string
                      number:
                        type: string
                      gasLimit:
                        type: string
                      gasUsed:
                        type: string
                      timestamp:
                        type: string
                      extraData:
                        type: string
                      mixHash:
                        type: string
                      nonce:
                        type: string
                      baseFeePerGas:
                        type: string
                      withdrawalsRoot:
                        type: string
                      blobGasUsed:
                        type: string
                      excessBlobGas:
                        type: string
                      parentBeaconBlockRoot:
                        type: string
                      requestsHash:
                        type: string
                      size:
                        type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  hash: >-
                    0x6dabcf7ed4cf53e05054a4d671b19b7597740bce1042019ff31af68dde9c98a9
                  parentHash: >-
                    0xfe1c06b10e6be606cad7b32b7da87bfba91fc1c45085b7ea12c69070e6cd3778
                  sha3Uncles: >-
                    0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347
                  miner: '0xa693cc18aa09d33dd388013b7a02e5ff863b8760'
                  stateRoot: >-
                    0xfd095b710adcb8045a8904d02c000f25230b151ef3a4e4b4dbf84ab083c2b9df
                  transactionsRoot: >-
                    0x1df73587a490d0ae7e236905773748ef07ea63c1c22aa93659eb8fd4f77ef04d
                  receiptsRoot: >-
                    0x968419399ee52ee3133e57e9111b513f941f269b5f7e83f358b5b894e8736362
                  logsBloom: >-
                    0x0000000000004000000010200400000040000010002000024080060400000000800000000000002200000000000000000040000402002201000000024000000011000401120800040000000900000200000100002000000100000000800000000000000006000000200a004400004800002000800000000000000010000000c0000000080000000010080000000000c800012001000880000040000000800000000000200240000000008000000000008000000020000000000000000004000004000023001000001008000004000002000000080404084000080110000020600000000000020000000400001002000008200440000100400000000010000000
                  difficulty: '0x0'
                  number: '0x34808ff'
                  gasLimit: '0x1c9c380'
                  gasUsed: '0x1db35b'
                  timestamp: '0x6a7026be'
                  extraData: '0x00000004a817c800'
                  mixHash: >-
                    0x0000000000000000000000000000000000000000000000000000000000000000
                  nonce: '0x0000000000000000'
                  baseFeePerGas: '0x4a817c800'
                  withdrawalsRoot: >-
                    0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
                  blobGasUsed: '0x0'
                  excessBlobGas: '0x0'
                  parentBeaconBlockRoot: >-
                    0xfe1c06b10e6be606cad7b32b7da87bfba91fc1c45085b7ea12c69070e6cd3778
                  requestsHash: >-
                    0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
                  size: '0xbda'

````