Skip to main content
Glama

Mempool MCP Server

GeneralService.ts793 B
import { GeneralRequestService } from "../../infrastructure/services/requests/GeneralRequestService.js"; import { formatResponse } from "../helpers/format.js"; export class GeneralService { constructor(private requestService: GeneralRequestService) {} async getDifficultyAdjustment(): Promise<string> { const data = await this.requestService.getDifficultyAdjustment(); return formatResponse<any>("Difficulty Adjustment", data); } async getPrice(): Promise<string> { const data = await this.requestService.getPrice(); return formatResponse<any>("Current Price", data); } async getHistoricalPrice(date: string): Promise<string> { const data = await this.requestService.getHistoricalPrice(date); return formatResponse<any>("Historical Price", data); } }

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