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

# GetBeaconStatesRandaoByStateId

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

Get the RANDAO mix for some epoch in a specified state.

Fetch the RANDAO mix for the requested epoch from the state identified by `state_id`.

If an epoch is not specified then the RANDAO mix for the state's current epoch will be returned.

By adjusting the `state_id` parameter you can query for any historic value of the RANDAO mix.
Ordinarily states from the same epoch will mutate the RANDAO mix for that epoch as blocks are
applied.

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

## Query parameters

- `epoch` string

## 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
    - `randao` string, hex, required — RANDAO mix for requested epoch in state.

---

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