get-difficulty-adjustment
Retrieve current and upcoming Bitcoin difficulty adjustment details to analyze network mining complexity and predict block confirmation times. Access via Mempool MCP Server for real-time blockchain insights.
Instructions
Returns current and next Bitcoin difficulty adjustment info
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The MCP tool handler function that calls GeneralService to retrieve difficulty adjustment information and returns it formatted as text content.async () => { const text = await this.generalService.getDifficultyAdjustment(); return { content: [{ type: "text", text }] }; }
- src/interface/controllers/GeneralToolsController.ts:18-25 (registration)Registers the "get-difficulty-adjustment" tool with the MCP server, providing its name, description, and parameterless handler.this.server.tool( "get-difficulty-adjustment", "Returns current and next Bitcoin difficulty adjustment info", async () => { const text = await this.generalService.getDifficultyAdjustment(); return { content: [{ type: "text", text }] }; } );
- Helper method in GeneralService that fetches raw data from GeneralRequestService and formats it using formatResponse.async getDifficultyAdjustment(): Promise<string> { const data = await this.requestService.getDifficultyAdjustment(); return formatResponse<any>("Difficulty Adjustment", data); }
- Core helper that performs the API request to fetch the difficulty adjustment data.async getDifficultyAdjustment(): Promise<any | null> { return this.client.makeRequest<any>(`difficulty-adjustment`); }