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

# getblockheader | Bitcoin

> The getblockheader method retrieves detailed information about a block header given its hash. Available on Bitcoin via Chainstack.

The `getblockheader` method retrieves detailed information about a block header given its hash. This includes the block's hash, the number of confirmations, its height in the blockchain, version, Merkle root, block time, nonce, difficulty, total work done in the chain up to this block, and the hashes of the previous and next blocks if available.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `blockhash` (required): The hash of the block header to retrieve.

## Response

* `result` — an object containing detailed information about the block header, such as its hash, confirmations, height, version, Merkle root, time, nonce, difficulty, total work, number of transactions, and previous and next block hashes.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `getblockheader` method is essential for applications and services that need to verify the blockchain's integrity or analyze its properties. It provides critical information about individual blocks without the need to download the entire block, making it useful for lightweight clients and block explorers.


## OpenAPI

````yaml /openapi/bitcoin_node_api/getblockheader.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: getblockheader example
  version: 1.0.0
  description: This is an API example for getblockheader.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: getblockheader
      operationId: getblockheader
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: getblockheader
                params:
                  type: array
                  items:
                    oneOf:
                      - type: string
                        description: The block hash
                        example: >-
                          000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
                      - type: boolean
                        description: >-
                          If true, returns the blockheader as a hex-encoded
                          string
                        example: true
                  default:
                    - >-
                      000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
                    - true
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Information about the block header
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                  error:
                    type: object
                  id:
                    type: integer

````