---
title: "Historical Logs"
method: GET
path: "/defi/v1/fungibletoken/historicallogs"
tags: ["fungibletoken"]
---

# Historical Logs

`GET /defi/v1/fungibletoken/historicallogs`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/fungibletoken/historicallogs`
- Auth: API key in header `X-API-Key`

Retrieves historical blockchain logs related to an ERC-20 token for a specified user address within a defined block range. It is designed to capture events such as token approvals and transfers, allowing developers and users to audit past activity, verify transaction histories, and analyze token behavior over time.

> 💡 
**Compute Unit Value:** `70` (Fixed)

## Query parameters

- `chainId` '1' | '137' | '56' | '25' | '10' | '250' | '43114' | '42161' | '8453': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
- `chainSymbol` string: The abbreviated chain name for queries or transactions.
- `startBlock` string: The starting block of the range. Default: latestBlock - 100.
- `endBlock` string: The ending block of the range. Default: latestBlock.
- `tokenAddress` string, required: The address of the ERC-20 token for which logs are being queried.
- `type` 'Approval' | 'Transfer', required: Type of logs to fetch. Must be either Approval or Transfer.
- `page` string: The page number to fetch. By default, 1.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
