---
title: "GetBeaconStatesRootByStateId"
method: GET
path: "/{apiKey}/eth/v1/beacon/states/{stateId}/root"
---

# GetBeaconStatesRootByStateId

`GET /{apiKey}/eth/v1/beacon/states/{stateId}/root`

Get state SSZ HashTreeRoot. Calculates HashTreeRoot for state with given 'stateId'. If stateId is root, same value will be returned.

## Path parameters

- `apiKey` string, required — <style> .custom-style { color: #048FF4; } </style> For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.
- `stateId` string, required

## Response `200`

The state SSZ HashTreeRoot

- object
  - `execution_optimistic` boolean, required — True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.
  - `finalized` boolean, required — True if the response references the finalized history of the chain, as determined by fork choice. If the field is not present, additional calls are necessary to compare the epoch of the requested information with the finalized checkpoint.
  - `data` object, required
    - `root` string, hex, required — HashTreeRoot of BeaconState object

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/revisions/be8fa2338895/schema)
