Skip to main content
Glama

get_mining_pool_rankings

Retrieve top 10 Bitcoin mining pools by hashrate share to analyze mining centralization and pool dominance trends.

Instructions

Get top 10 Bitcoin mining pools by hashrate share over the last week. Returns pool name, percentage of total hashrate, and block count. Use this to understand mining centralization and pool dominance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the get_mining_pool_rankings tool, which fetches data from the mempool.space API to provide mining pool rankings.
        Args:
            txid: Transaction ID (64-character hex string)
        """
        result = _query_indexed_api(f"tx/{txid}")
        if "error" not in result:
            return json.dumps(result)
        # Fallback to mempool.space
        data = _query_mempool_space(f"tx/{txid}")
        if isinstance(data, dict) and "error" in data:
            return json.dumps(data)
        if isinstance(data, dict):
            data["source"] = "mempool.space"
        return json.dumps(data)
    
    
    @mcp.tool()
    def get_indexer_status() -> str:
        """Check the blockchain indexer sync progress.
    
        Returns current indexed height, chain tip, sync percentage, blocks/sec, and ETA.
        Use this to check if the indexer is running and how far along the initial sync is.
        """
        result = _query_indexed_api("status")
        return json.dumps(result)

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