---
title: "Fetch the raw value associated with the given key in the chain state"
method: GET
path: "/v1/chains/{chainID}/state/{stateKey}"
tags: ["chains"]
---

# Fetch the raw value associated with the given key in the chain state

`GET /v1/chains/{chainID}/state/{stateKey}`

## Path parameters

- `chainID` string, string, required
- `stateKey` string, string, required

## Response `200`

Result

- StateResponse
  - `state` string, string, required — The state of the requested key (Hex-encoded)

## Changes

> 50 revisions in range; 1 could not be searched.

- **2023-03-21** `5ffe1a3d7623` — 1 info
  - endpoint added
- **2023-02-13** `1041f915f260` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/iotaledger/apis/wasp-api/changes/v1/chains/:chainID/state/:stateKey/get.md)

---

[API](https://skmtc.dev/iotaledger/apis/wasp-api.md) · [All operations](https://skmtc.dev/iotaledger/apis/wasp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iotaledger/wasp-api/revisions/994a6c93b890/schema)
