TimelockedWeightCommits
Storage Map v306 → currentTimelocked weight commits for commit-reveal .
Explore chainQueried by: validatorsdevelopers
The Big Picture
Current commit-reveal storage. Commits are encrypted and timelocked until the reveal round. Contains (who, commit_block, ciphertext, reveal_round) tuples.
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.
Common Query Patterns
- Query by (netuid, epoch)
Query Keys
Stored Value
Value in RAO (÷10⁹ for TAO)
Relationships
Related Events
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 TimelockedWeightCommits storage
const key1 = 0;
const key2 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("TimelockedWeightCommits")](
key1,
key2
);
console.log("TimelockedWeightCommits:", result.toHuman());On-Chain Activity
Write Frequency
●●●●●○ High 1M–10M est. writes
1M–10M estimated writes
#21 most written storage item
Write Source User Extrinsics
Modified via user-submitted extrinsics
As of block 7,429,232
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v306
- Current Version
- v393