Module

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

Package publishing for deno.land/x/polkadot
Go to Latest
function info
import { info } from "https://dotland.deno.dev/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

instanceId: string

Returns

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