Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-tx-status

Check the status of a Bitcoin transaction using the transaction ID (txid). Tool integrates with Mempool MCP Server for real-time blockchain and mempool data retrieval.

Instructions

Returns status for a transaction

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txidYesThe txid to get status for

Implementation Reference

  • Registers the 'get-tx-status' MCP tool with input schema (txid: 64-char string) and inline async handler that delegates to TxService.getTxStatus, returning formatted text content.
    private registerGetTxStatusHandler(): void { this.server.tool( "get-tx-status", "Returns status for a transaction", { txid: z.string().length(64).describe("The txid to get status for"), }, async ({ txid }) => { const text = await this.txService.getTxStatus({ txid }); return { content: [{ type: "text", text }] }; } ); }
  • Helper method in TxService: fetches raw status data from TxRequestService and formats it using formatResponse for the tool output.
    async getTxStatus({ txid }: { txid: string }): Promise<string> { const data = await this.requestService.getTxStatus({ txid }); return formatResponse<ITxStatusResponse>("Transaction Status", data); }
  • Core helper: performs HTTP request to the `/tx/{txid}/status` API endpoint to retrieve the transaction status data.
    async getTxStatus({ txid }: { txid: string }): Promise<ITxStatusResponse | null> { return this.client.makeRequest<ITxStatusResponse>(`tx/${txid}/status`); }

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