Skip to main content
Glama

Mempool MCP Server

AddressRequestService.ts1.24 kB
import { IApiClient } from "../../interfaces/IApiClient.js"; import { IAddressResponse, IAddressTxResponse, IAddressUtxoResponse, } from "../../../domain/models/responses/address/IAddressResponse.js"; export class AddressRequestService { constructor(private client: IApiClient) {} async getAddressInfo({ address }: { address: string }): Promise<IAddressResponse | null> { return this.client.makeRequest<IAddressResponse>(`address/${address}`); } async getAddressTxs({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs`); } async getAddressTxsChain({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs/chain`); } async getAddressTxsMempool({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs/mempool`); } async getAddressUtxo({ address }: { address: string }): Promise<IAddressUtxoResponse[] | null> { return this.client.makeRequest<IAddressUtxoResponse[]>(`address/${address}/utxo`); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexandresanlim/mempool-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server