Set of Opted-in Validators
The validator registry contract deployed on Holesky maintains a set of validators who are opted in to the mev-commit protocol. This is achieved by requiring those validators to stake ether with the registry on behalf of their BLS public key. Anyone can query the full set of validator pubkeys who have opted in to mev-commit by calling thegetNumberOfStakedValidators
function in conjunction with getStakedValidators
on the validator registry contract. See the following signatures:
stakedValsetVersion
is updated on-chain anytime the set of opted-in validators changes. This value can be used for debugging and/or as an optimistic locking mechanism to ensure the set of validators hasn’t changed during a batch query.
That is, if all queries in a batch return the same stakedValsetVersion
, the aggregate staked validator set is valid. Otherwise handling is left to the user (who will likely retry the batch query).
Try batched RPC requests to speed up this process.
Golang example
You can programmatically query the validator registry via golang scripts. For example, to query the full set of staked validators, use this example script as described below. First clone the validator-registry repo:❯_ terminal
❯_ terminal