- GitHub Repository: Visit
The Offline Election Tool Rework is a command-line tool for reconstructing and analyzing Polkadot’s Nominated Proof-of-Stake (NPoS) validator elections directly from on-chain snapshot data.
It fetches the election provider snapshot from Asset Hub and runs a full offline re-execution of the election logic — including the stake-weighted variant of Phragmén’s algorithm, which is used by Polkadot for computing validator assignments.
The tool is primarily designed for research, verification, and debugging of validator election outcomes across different blocks and eras.
It also supports comparing offline results against the relay chain’s Session::Validators set and optionally inspecting exposure pages for deeper analysis.