There are api.query.session.nextKeys and api.query.session.queuedKeys for obtaining the next session keys for a validator (doc).

But how do I query the current the session keys used by an active validator?

1 Answer 1


You can query the AccountId's of the validators from the session pallet, and the AuthorityId's from their respective pallet's fn authorities() (eg: Aura::authorities()). Then you can zip them up if you like. The AccountIds and the keys are communicated to the pallets and stored in the pallets in order.

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.