Skip to main content
Glama
alexandresanlim

Mempool MCP Server

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
NameRequiredDescriptionDefault

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`); }
  • 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 }] }; } ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexandresanlim/mempool-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server