get-address-txs
Retrieve Bitcoin transaction history for any address to track payments, verify transfers, and monitor blockchain activity.
Instructions
Returns transactions for an address
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address to get txs for |
Implementation Reference
- Core handler logic: Makes API client request to `address/${address}/txs` endpoint to fetch transactions for the address.async getAddressTxs({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs`); }
- Helper method in AddressService that calls the request service and formats the transaction data into a string response.async getAddressTxs({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressTxs({ address }); return formatResponse<IAddressTxResponse[]>("Address Transactions", data); }
- src/interface/controllers/AddressToolsController.ts:33-45 (registration)Registers the MCP 'get-address-txs' tool, including input schema (address: string) and thin handler that delegates to AddressService.private registerGetAddressTxsHandler(): void { this.server.tool( "get-address-txs", "Returns transactions for an address", { address: z.string().describe("The address to get txs for"), }, async ({ address }) => { const text = await this.addressService.getAddressTxs({ address }); return { content: [{ type: "text", text }] }; } ); }
- Zod input schema definition for the 'get-address-txs' tool.{ address: z.string().describe("The address to get txs for"), },