get-mempool-recent
Retrieve recent Bitcoin mempool transactions to access up-to-date network activity data, enabling real-time analysis and decision-making.
Instructions
Returns recent mempool transactions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/interface/controllers/MempoolToolsController.ts:38-47 (registration)Registers the MCP tool 'get-mempool-recent' using server.tool(), defines the handler that calls MempoolService.getMempoolRecent() and returns formatted text content.private registerGetMempoolRecentHandler(): void { this.server.tool( "get-mempool-recent", "Returns recent mempool transactions", async () => { const text = await this.mempoolService.getMempoolRecent(); return { content: [{ type: "text", text }] }; } ); }
- Helper method in MempoolService that retrieves recent mempool data from the request service and formats the response using formatResponse.async getMempoolRecent(): Promise<string> { const data = await this.requestService.getMempoolRecent(); return formatResponse<IMempoolRecentResponse[]>("Mempool Recent", data); }
- Core implementation in MempoolRequestService that makes the actual API request to the 'mempool/recent' endpoint via the API client.async getMempoolRecent(): Promise<IMempoolRecentResponse[] | null> { return this.client.makeRequest<IMempoolRecentResponse[]>(`mempool/recent`); }