Skip to main content
Glama

get_mining_info

Retrieve Bitcoin mining data including network difficulty, hashrate, and current block size to monitor blockchain performance.

Instructions

Get mining info: difficulty, network hashrate, current block size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the 'get_mining_info' tool in src/bitcoin_mcp/server.py, which calls the RPC 'getmininginfo' method and returns the result as a JSON string.
    def get_mining_info() -> str:
        """Get mining info: difficulty, network hashrate, current block size."""
        info = get_rpc().getmininginfo()
        return json.dumps(info)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bortlesboat/bitcoin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server