We can list the active set with session::validators() and/or babe::authorities()

How to list waiting validators though?

active and waiting validators

1 Answer 1


Use Staking::validators() to get all validators.


let all = Staking::validators();
let active = Session::validators();
let waiting = all.difference(active);
  • Failing at the above bc staking::validators(who) requires me knowing that who mapping key. I'm trying to do this with @polkadot/api.
    – user1813
    Jan 31, 2023 at 9:29
  • There should be a method to iterate this map. Jan 31, 2023 at 9:31
  • Thanks a lot, i got it. To get all validators: await api.query.staking.validators.entries().then(r => r.map(v => v[0].toHuman()[0]))
    – user1813
    Jan 31, 2023 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.