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

# getmininginfo | Bitcoin

The `getmininginfo` method provides a variety of mining-related information from the node, such as the current number of blocks, the difficulty, the estimated network hash rate, and other important data for miners.

<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

* None

## Response

* `result` — an object containing various pieces of mining-related information:

  * `blocks` — the current number of blocks processed by the node.
  * `difficulty` — the current difficulty target being used by the node.
  * `networkhashps` — the estimated network hashes per second based on the last n blocks.
  * `pooledtx` — the number of transactions in the mempool.
  * `chain` — the current blockchain (e.g., "main", "test", "regtest").
* `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 `getmininginfo` method is crucial for miners and mining pool operators to understand the current state of the network. It provides essential data for making decisions about mining difficulty adjustments and estimating the network's total hash rate.


## OpenAPI

````yaml /openapi/bitcoin_node_api/getmininginfo.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: getmininginfo example
  version: 1.0.0
  description: >-
    This is an API example for getmininginfo, a method to get various
    mining-related information.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: getmininginfo
      operationId: getMiningInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: getmininginfo
                params: {}
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Various mining-related information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    description: >-
                      Contains mining-related information such as blocks,
                      current network hash rate, difficulty,  and more.
                  error:
                    type: object
                  id:
                    type: integer

````