import { info } from "https://deno.land/x/polkadot@0.2.38/api-derive/elections/info.ts";
Examples
api.derive.elections.info(({ members, candidates }) => {
console.log(`There are currently ${members.length} council members and ${candidates.length} prospective council candidates.`);
});
Parameters
api: DeriveApi
Returns
() => Observable<DeriveElectionsInfo>
An object containing the combined results of the storage queries for all relevant election module properties.