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
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The 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`); }