TimelockedWeightCommits
Storage Map Event-driven v306 → v411 Changed in v411Timelocked weight commits for commit-reveal — canonical at v411.
Explore chainThe Big Picture
Current commit-reveal storage. Commits are encrypted and timelocked until the reveal round. Contains (who, commit_block, ciphertext, reveal_round) tuples. Indexers can ignore CRV3WeightCommits and CRV3WeightCommitsV2 — both are empty at v411.
Use Cases
- View pending commits
- Debug commit-reveal
- Build commit tracking tools
From Chain Metadata
MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)> Stores a queue of weight commits for an account on a given subnet.
Purpose & Usage
Purpose
Store encrypted weight commits with timed reveal. Supersedes CRV3WeightCommits and CRV3WeightCommitsV2 — both legacy storages are empty at v411.
Common Query Patterns
- Query by (netuid, epoch)
Query Keys
Stored Value
Value in RAO (÷10⁹ for TAO)
Decoding the value
VecDeque<(AccountId, u64 commit_block, BoundedVec<u8> ciphertext, RoundNumber)>Each entry is a commit-reveal tuple. ciphertext is encrypted weights; reveal_round determines when the timelock unseals.
value as Array<{0: string; 1: bigint; 2: Uint8Array; 3: bigint}>Relationships
Related Storages
- CRV3WeightCommitsV2 Supersedes CRV3WeightCommitsV2 is the immediate predecessor; this storage has the same value shape (who, commit_block, ciphertext, reveal_round).
- CRV3WeightCommits Supersedes Older legacy storage; chain is CRV3WeightCommits → CRV3WeightCommitsV2 → this.
Related Events
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 TimelockedWeightCommits storage
const key1 = 0;
const key2 = 0n;
const result = await api.query.SubtensorModule.TimelockedWeightCommits.getValue(key1, key2);
console.log("TimelockedWeightCommits:", result);On-Chain Activity
1M–10M estimated writes
#21 most written storage item
Modified via user-submitted extrinsics
As of block 7,429,232
Version History
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v306
- Current Version
- v411
- Population
- dense (~126 entries)