UNPKG

@sanlim/mempool-mcp-server

Version:

A sample of MCP implementation using DDD structure with some APIs call.

17 lines (16 loc) 447 B
export class GeneralRequestService { client; constructor(client) { this.client = client; } async getDifficultyAdjustment() { return this.client.makeRequest(`difficulty-adjustment`); } async getPrice() { return this.client.makeRequest(`prices`); } async getHistoricalPrice(date) { // date format: YYYY-MM-DD return this.client.makeRequest(`historical-price/${date}`); } }