---
title: "Get Historical Transactions"
method: GET
path: "/defi/v1/dex/gethistoricaltransactions"
tags: ["dex"]
---

# Get Historical Transactions

`GET /defi/v1/dex/gethistoricaltransactions`

## Request

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

Retrieves a chronological list of swap transactions for a specified DEX pool within a defined block range, returning transaction hashes, addresses, and gas metrics. Block-level details (e.g., block number, timestamp) and transfer categorization (e.g., send, receive, contract interaction) help facilitate in-depth auditing and performance analysis, with a pagination token for navigating extended data.

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

## Query parameters

- `dexId` '1000' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1100' | '1200' | '1201': The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-dexs-protocols).
- `endBlock` string: Last block of the range.
- `startBlock` string: Starting block of the range.
- `poolAddress` string, required: Pool address whose liquidity is to be fetched.

## 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)
