getBeaconStateRandao
Retrieve the verified RANDAO mix value from a specified Beacon Chain state and optional epoch, enabling access to on-chain randomness for verification and application use.
Instructions
Get the RANDAO mix value for a given Beacon Chain state and optional epoch
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stateId": "<stateId>"
},
"name": "getBeaconStateRandao"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network ID. Call listSupportedNetworks for all options. e.g. "eth-mainnet", "base-mainnet" | eth-mainnet |
| stateId | Yes | State ID: head, genesis, finalized, slot, or state root | |
| epoch | No | Epoch number to get RANDAO for |