Skip to main content
Module

x/polkadot/api-derive/elections/index.ts>info

Package publishing for deno.land/x/polkadot
Go to Latest
function info
import { info } from "https://deno.land/x/polkadot@0.2.40/api-derive/elections/index.ts";

Examples

api.derive.elections.info(({ members, candidates }) => {
  console.log(`There are currently ${members.length} council members and ${candidates.length} prospective council candidates.`);
});

Parameters

instanceId: string

Returns

An object containing the combined results of the storage queries for all relevant election module properties.