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
| Name | Required | Description | Default |
|---|---|---|---|
| txid | Yes | The txid to get status for |
Implementation Reference
- src/interface/controllers/TxToolsController.ts:34-46 (registration)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`); }