get-mining-blocks-fees-24h
Retrieve Bitcoin mining block fees data from the past 24 hours to analyze transaction fee trends and network activity.
Instructions
Returns mining blocks fees for the last 24h
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- MCP tool handler for 'get-mining-blocks-fees-24h' that delegates to MiningService and structures the response as MCP content.this.server.tool( "get-mining-blocks-fees-24h", "Returns mining blocks fees for the last 24h", async () => { const text = await this.miningService.getMiningBlocksFees24h(); return { content: [{ type: "text", text }] }; } );
- Service method that fetches raw data from MiningRequestService and formats it using formatResponse.async getMiningBlocksFees24h(): Promise<string> { const data = await this.requestService.getMiningBlocksFees24h(); return formatResponse<any[]>("Mining Blocks Fees 24h", data); }
- Infrastructure method that performs the actual API call to retrieve mining blocks fees data for the last 24h.async getMiningBlocksFees24h(): Promise<any[] | null> { return this.client.makeRequest<any[]>(`v1/mining/blocks/fees/24h`); }
- src/interface/controllers/MiningToolsController.ts:42-51 (registration)Registers the 'get-mining-blocks-fees-24h' tool with the MCP server.private registerGetMiningBlocksFees24hHandler(): void { this.server.tool( "get-mining-blocks-fees-24h", "Returns mining blocks fees for the last 24h", async () => { const text = await this.miningService.getMiningBlocksFees24h(); return { content: [{ type: "text", text }] }; } ); }