@sanlim/mempool-mcp-server
Version:
A sample of MCP implementation using DDD structure with some APIs call.
16 lines (15 loc) • 424 B
JavaScript
export class MiningRequestService {
client;
constructor(client) {
this.client = client;
}
async getMiningPools() {
return this.client.makeRequest(`mining/pools`);
}
async getMiningPool({ poolId }) {
return this.client.makeRequest(`mining/pool/${poolId}`);
}
async getMiningBlocksFees24h() {
return this.client.makeRequest(`v1/mining/blocks/fees/24h`);
}
}