1

Under Network > Staking > Targets we can see some validators are selected for the next session / active set. enter image description here

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/staking/targets

What event is this on the blockchain?

Can I listen for this, e.g. using rpc/js api?

enter image description here

1 Answer 1

4

There is an even in the Staking pallet: StakersElected, however this event does not itself contain all the new stakers that were selected since that list can be large, and just as easily queried if needed.

So once you see the StakersElected event, you can simply do the following query electionsPhragmen > Members to get the list of the new validators:

enter image description here

1

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.