Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-address-txs-chain

Fetch all chain transactions linked to a specific Bitcoin address using real-time blockchain data from the Mempool MCP Server.

Instructions

Returns chain transactions for an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe address to get chain txs for

Implementation Reference

  • MCP tool registration for 'get-address-txs-chain', including Zod input schema, description, and handler function that delegates to AddressService.getAddressTxsChain
    private registerGetAddressTxsChainHandler(): void { this.server.tool( "get-address-txs-chain", "Returns chain transactions for an address", { address: z.string().describe("The address to get chain txs for"), }, async ({ address }) => { const text = await this.addressService.getAddressTxsChain({ address }); return { content: [{ type: "text", text }] }; } );
  • The MCP tool handler: calls AddressService.getAddressTxsChain and returns formatted text response.
    async ({ address }) => { const text = await this.addressService.getAddressTxsChain({ address }); return { content: [{ type: "text", text }] }; }
  • Input schema using Zod: requires 'address' string.
    { address: z.string().describe("The address to get chain txs for"), },
  • AddressService helper: fetches chain txs via request service and formats response.
    async getAddressTxsChain({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressTxsChain({ address }); return formatResponse<IAddressTxResponse[]>( "Address Chain Transactions", data ); }
  • Infrastructure helper: performs API request to `/address/${address}/txs/chain` endpoint.
    async getAddressTxsChain({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs/chain`); }

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