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.

πŸ‘

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

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.

Try the getmininginfo RPC method yourself

Language
Click Try It! to start a request and see the response here!