get-mining-blocks-fees-24h
Access 24-hour mining block fees data via the Mempool MCP Server to analyze Bitcoin network transaction costs and mining revenue trends.
Instructions
Returns mining blocks fees for the last 24h
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Core handler that fetches mining blocks fees data for the last 24h via API request to `v1/mining/blocks/fees/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 MCP tool 'get-mining-blocks-fees-24h' with no input parameters, delegating execution to MiningService.getMiningBlocksFees24h() and returning formatted text content.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 }] }; } ); }
- Helper method that retrieves raw data from MiningRequestService and formats it into a string response using formatResponse.async getMiningBlocksFees24h(): Promise<string> { const data = await this.requestService.getMiningBlocksFees24h(); return formatResponse<any[]>("Mining Blocks Fees 24h", data); }