get_chain_tips
Retrieve Bitcoin blockchain tips to identify active chains, forks, and stale branches for detecting chain splits.
Instructions
Get chain tips: active chain, forks, and stale branches. Useful for detecting chain splits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/bitcoin_mcp/server.py:253-256 (handler)The `get_chain_tips` tool is defined as an MCP tool using the `@mcp.tool()` decorator. It calls `get_rpc().getchaintips()` to interact with the Bitcoin node and returns the result as a JSON string.
def get_chain_tips() -> str: """Get chain tips: active chain, forks, and stale branches. Useful for detecting chain splits.""" tips = get_rpc().getchaintips() return json.dumps(tips)