get-address-info
Retrieve detailed information about a Bitcoin address, including transaction history and balance, using the Mempool MCP Server for real-time blockchain data.
Instructions
Returns details about an address
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address to get info for |
Implementation Reference
- Core execution logic for the get-address-info tool: performs API request to retrieve address information.async getAddressInfo({ address }: { address: string }): Promise<IAddressResponse | null> { return this.client.makeRequest<IAddressResponse>(`address/${address}`); }
- Input schema definition using Zod for the 'address' parameter.{ address: z.string().describe("The address to get info for"), },
- src/interface/controllers/AddressToolsController.ts:19-31 (registration)Registers the 'get-address-info' tool on the MCP server with name, description, input schema, and execution handler.private registerGetAddressHandler(): void { this.server.tool( "get-address-info", "Returns details about an address", { address: z.string().describe("The address to get info for"), }, async ({ address }) => { const text = await this.addressService.getAddressInfo({ address }); return { content: [{ type: "text", text }] }; } ); }
- Service layer helper that delegates to request service and formats the address info response.async getAddressInfo({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressInfo({ address }); return formatResponse<IAddressResponse>("Address Info", data); }