TimelockedIndex
Storage Plain v257 → currentTracks all commitments that have timelocked fields pending reveal.
Explore chainQueried by: validatorsdevelopersanalytics
The Big Picture
When timelocked commitments are submitted, they're indexed here until their reveal round arrives.
Use Cases
- Find all commitments pending reveal
- Build reveal processing systems
From Chain Metadata
Tracks all CommitmentOf that have at least one timelocked field.
Purpose & Usage
Purpose
Index for efficient processing of timelocked commitments when reveal rounds arrive.
Common Query Patterns
- Query to find all pending timelocked commitments
Stored Value
value (BTreeSet)
Relationships
Modified By
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 TimelockedIndex storage (no keys - plain value)
const result = await api.query
[stringCamelCase("Commitments")]
[stringCamelCase("TimelockedIndex")]();
console.log("TimelockedIndex:", result.toHuman());Runtime Info
View Source- Pallet
- Commitments
- Storage Kind
- Plain
- First Version
- v257
- Current Version
- v393