UNPKG

@sanlim/mempool-mcp-server

Version:

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

22 lines (21 loc) 693 B
export class AddressRequestService { client; constructor(client) { this.client = client; } async getAddressInfo({ address }) { return this.client.makeRequest(`address/${address}`); } async getAddressTxs({ address }) { return this.client.makeRequest(`address/${address}/txs`); } async getAddressTxsChain({ address }) { return this.client.makeRequest(`address/${address}/txs/chain`); } async getAddressTxsMempool({ address }) { return this.client.makeRequest(`address/${address}/txs/mempool`); } async getAddressUtxo({ address }) { return this.client.makeRequest(`address/${address}/utxo`); } }