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
| Name | Required | Description | Default |
|---|---|---|---|
| height_or_hash | Yes |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/bitcoin_mcp/server.py:220-227 (handler)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()