Skip to main content
Glama

Mempool MCP Server

BlockRequestService.ts466 B
import { IBlockResponse } from "../../../domain/models/responses/block/IBlockResponse.js"; import { IHashParameter } from "../../../shared/parameters/IHashParameter.js"; import { IApiClient } from "../../interfaces/IApiClient.js"; export class BlockRequestService { constructor(private client: IApiClient) {} async getBlock({ hash }: IHashParameter): Promise<IBlockResponse | null> { return this.client.makeRequest<IBlockResponse>(`block/${hash}`); } }

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