This storage item was removed in v127

This storage item is no longer available in the current runtime. Existed from v123 to v127. Shown here for historical reference.

Voting

Storage Removed Map v123 → v127 (removed)

Voting state for each proposal.

Queried by: validatorsanalytics

The Big Picture

Live vote tallies for active proposals.

Use Cases

  • Check vote counts
  • Monitor proposal progress

From Chain Metadata

Votes on a given proposal, if it is ongoing.

Purpose & Usage

Purpose

Track votes, threshold, and voting status.

Common Query Patterns

  • Query by proposal hash to see vote status

Query Keys

#NameTypeDescription
1
key1
H256 key1 (H256)

Stored Value

Votes

value (Votes)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query Voting storage
const key1 = 0 as any /* H256 */;

const result = await api.query
  [stringCamelCase("Senate")]
  [stringCamelCase("Voting")](
  key1
);

console.log("Voting:", result.toHuman());

Runtime Info

Pallet
Senate
Storage Kind
Map
First Version
v123
Removed In
v127