get-address-info
Retrieve Bitcoin address details including transaction history and balance from the blockchain.
Instructions
Returns details about an address
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address to get info for |
Implementation Reference
- src/interface/controllers/AddressToolsController.ts:19-31 (registration)Registers the 'get-address-info' MCP tool with server.tool, including description, Zod input schema for 'address', and thin async handler delegating to AddressService.getAddressInfo returning formatted text content.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 }] }; } ); }
- Helper method in AddressService that retrieves address info via requestService and formats the response using formatResponse utility.async getAddressInfo({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressInfo({ address }); return formatResponse<IAddressResponse>("Address Info", data); }
- Core helper that performs the API request to fetch address information from the backend endpoint `address/${address}`.async getAddressInfo({ address }: { address: string }): Promise<IAddressResponse | null> { return this.client.makeRequest<IAddressResponse>(`address/${address}`); }