TimelockedIndex

Storage Plain v257 → current

Tracks all commitments that have timelocked fields pending reveal.

Explore chain
Queried 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
Part of: On-Chain Commitments

Stored Value

value (BTreeSet)

Relationships

Modified By

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