---
title: "Get contract by id"
method: GET
path: "/api/v1/contracts/{contractIdOrAddress}"
tags: ["contracts"]
---

# Get contract by id

`GET /api/v1/contracts/{contractIdOrAddress}`

Return the contract information given an id

## Path parameters

- `contractIdOrAddress` string, required

## Query parameters

- `timestamp` string[]

## Response `200`

OK

- ContractResponse — unresolved $ref

## Other responses

- `400` — Invalid parameter
- `404` — Not Found

## Changes

- **2025-08-08** (v1) `db389f03b097` — 19 breaking
  - the response property `_status/messages/items/data` became nullable for the status `400`
  - the response property `_status/messages/items/data` became nullable for the status `404`
  - the response property `_status/messages/items/detail` became nullable for the status `400`
  - the response property `_status/messages/items/detail` became nullable for the status `404`
  - …15 more

[Change history](https://skmtc.dev/hiero-ledger/apis/mirror-node-rest-api/changes/api/v1/contracts/:contractIdOrAddress/get.md)

---

[API](https://skmtc.dev/hiero-ledger/apis/mirror-node-rest-api.md) · [All operations](https://skmtc.dev/hiero-ledger/apis/mirror-node-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hiero-ledger/mirror-node-rest-api/revisions/ee602751b3f7/schema)
