Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-address-txs-chain

Retrieve Bitcoin blockchain transaction history for a specific address to analyze past activity and verify on-chain transfers.

Instructions

Returns chain transactions for an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe address to get chain txs for

Implementation Reference

  • MCP tool handler registration for 'get-address-txs-chain', including input schema (address: string) and execution logic that delegates to AddressService.getAddressTxsChain and returns MCP-formatted response.
    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 }] };
        }
      );
  • Helper method in AddressService that fetches chain transactions via request service and formats the response.
    async getAddressTxsChain({ address }: IAddressParameter): Promise<string> {
      const data = await this.requestService.getAddressTxsChain({ address });
      return formatResponse<IAddressTxResponse[]>(
        "Address Chain Transactions",
        data
      );
    }
  • Core helper implementation: performs API request to retrieve chain transactions for the address.
    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