---
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)

---

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