---
title: "The contract state from a contract on the network"
method: GET
path: "/api/v1/contracts/{contractIdOrAddress}/state"
tags: ["contracts"]
---

# The contract state from a contract on the network

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

Returns a list of all contract's slots. If no timestamp is provided, returns the current state.

## Path parameters

- `contractIdOrAddress` string, required

## Query parameters

- `limit` integer
- `order` 'asc' | 'desc'
- `slot` string
- `timestamp` string[]

## Response `200`

OK

- ContractStateResponse
  - `state` ContractState[]
    - `address` string, binary, required — A network entity encoded as an EVM address in hex.
    - `contract_id` string, nullable, required — Network entity ID in the format of `shard.realm.num`
    - `timestamp` string, required — A Unix timestamp in seconds.nanoseconds format
    - `slot` string, binary, required — The hex encoded storage slot.
    - `value` string, binary, required — The hex encoded value to the slot. `0x` implies no value written.
  - `links` Links
    - `next` string, nullable

## Other responses

- `400` — Invalid parameter

## Changes

- **2026-05-14** (v1) `b940acac6e1d` — 1 info
  - removed the non-success response with the status `404`
- **2025-08-08** (v1) `db389f03b097` — 4 breaking, 1 info
  - the response property `_status/messages/items/data` became nullable for the status `400`
  - the response property `_status/messages/items/detail` became nullable for the status `400`
  - the response property `links/next` became nullable for the status `200`
  - the response property `state/items/contract_id` became nullable for the status `200`
  - …1 more

[Change history](https://skmtc.dev/hiero-ledger/apis/mirror-node-rest-api/changes/api/v1/contracts/:contractIdOrAddress/state/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)
