@sanlim/mempool-mcp-server
Version:
A sample of MCP implementation using DDD structure with some APIs call.
16 lines (15 loc) • 387 B
JavaScript
export class MempoolRequestService {
client;
constructor(client) {
this.client = client;
}
async getMempoolInfo() {
return this.client.makeRequest(`mempool`);
}
async getMempoolTxids() {
return this.client.makeRequest(`mempool/txids`);
}
async getMempoolRecent() {
return this.client.makeRequest(`mempool/recent`);
}
}