Skip to main content
Glama

analyze_block

Analyze Bitcoin blocks to identify mining pools, track SegWit/Taproot adoption, examine fee distribution, and calculate mining revenue using block height or hash.

Instructions

Analyze a block: mining pool, SegWit/Taproot adoption, fee distribution, revenue.

Args: height_or_hash: Block height (e.g. "939290") or block hash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
height_or_hashYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `analyze_block` tool handler function, which calls the `_analyze_block` helper function from the `bitcoinlib_rpc.blocks` module.
    def analyze_block(height_or_hash: str) -> str:
        """Analyze a block: mining pool, SegWit/Taproot adoption, fee distribution, revenue.
    
        Args:
            height_or_hash: Block height (e.g. "939290") or block hash
        """
        analysis = _analyze_block(get_rpc(), height_or_hash)
        return analysis.model_dump_json()

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