---
title: "Get transactions by contract"
method: GET
path: "/{chainId}/transactions/{to}"
tags: ["transactions"]
---

# Get transactions by contract

`GET /{chainId}/transactions/{to}`

Retrieve transactions for a specific contract

## Path parameters

- `chainId` string, required
- `to` string, required

## Query parameters

- `filter` string
- `group_by` string
- `sort_by` string
- `sort_order` string
- `page` integer
- `limit` integer
- `aggregate` string[]
- `force_consistent_data` boolean

## Response `200`

OK

- object — QueryResponse represents the response structure for a query
  - `aggregations` object[] — @Description Aggregation results
  - `data` CommonTransactionModel[] — @Description Query result data
    - `access_list_json` string
    - `blob_gas_price` string
    - `blob_gas_used` integer
    - `block_hash` string
    - `block_number` integer
    - `block_timestamp` integer
    - `chain_id` string
    - `contract_address` string
    - `cumulative_gas_used` integer
    - `data` string
    - `effective_gas_price` string
    - `from_address` string
    - `function_selector` string
    - `gas` integer
    - `gas_price` string
    - `gas_used` integer
    - `hash` string
    - `logs_bloom` string
    - `max_fee_per_gas` string
    - `max_priority_fee_per_gas` string
    - `nonce` integer
    - `r` string
    - `s` string
    - `status` integer
    - `to_address` string
    - `transaction_index` integer
    - `transaction_type` integer
    - `v` string
    - `value` string
  - `meta` ApiMeta — Meta represents metadata for a query response
    - `address` string — @Description Contract address
    - `chain_id` integer — @Description Chain ID of the blockchain
    - `limit` integer — @Description Number of items per page
    - `page` integer — @Description Current page number
    - `signature` string — @Description Function or event signature
    - `total_items` integer — @Description Total number of items
    - `total_pages` integer — @Description Total number of pages

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2025-02-26** `e62eb392955d` — 1 info
  - added the new optional `query` request parameter `force_consistent_data`
- **2024-10-01** `8b52267689cc` — 1 warning
  - deleted the `query` request parameter `force_consistent_data`

[Change history](https://skmtc.dev/thirdweb/apis/thirdweb-insight/changes/:chainId/transactions/:to/get.md)

---

[API](https://skmtc.dev/thirdweb/apis/thirdweb-insight.md) · [All operations](https://skmtc.dev/thirdweb/apis/thirdweb-insight/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thirdweb/thirdweb-insight/revisions/a0a466ab88d5/schema)
