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