TimelockedWeightCommits

Storage Map v306 → current

Timelocked weight commits for commit-reveal .

Explore chain
Queried 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

#NameTypeDescription
1
key1
u16 key1 (u16)
2
key2
u64 key2 (u64)

Stored Value

Value in RAO (÷10⁹ for TAO)

Relationships

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