---
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
- `404` — Not Found

---

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