CommitRevealWeightsVersion
Storage Plain v301 → currentCurrent version of the commit-reveal weights protocol.
Explore chainQueried by: validatorsdevelopers
The Big Picture
The commit-reveal protocol may evolve. This version number ensures clients use the correct submission format. Mismatched versions will fail.
Use Cases
- Check protocol version before submitting
- Ensure client compatibility
- Debug commit-reveal issues
From Chain Metadata
ITEM ( CommitRevealWeightsVersion )
Purpose & Usage
Purpose
Track protocol version for compatibility.
Common Query Patterns
- Single value query
Stored Value
CommitRevealWeightsVersion (u16)
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query CommitRevealWeightsVersion storage (no keys - plain value)
const result = await api.query.SubtensorModule.CommitRevealWeightsVersion.getValue();
console.log("CommitRevealWeightsVersion:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v301
- Current Version
- v411