RegistrationsThisInterval

Storage Map v101 → v490 · 1 shape change

Registrations in current adjustment interval.

Explore chain
Queried by: minersvalidatorsdevelopersanalytics

The Big Picture

This counter tracks how many registrations have happened since the last difficulty adjustment. At each AdjustmentInterval, it's compared to TargetRegistrationsPerInterval to determine whether costs should increase or decrease.

Why This Matters

Will registration get cheaper or more expensive? Compare this to TargetRegistrationsPerInterval. Above target = costs rising. Below = costs falling.

Example Scenario

Query RegistrationsThisInterval(netuid=1) returns 5. Target is 3. We're 67% above target, so expect difficulty and burn to increase at the next adjustment.

Common Questions

When does this reset?
At each AdjustmentInterval. After difficulty adjusts, the counter resets to zero for the next interval.
Does this include both POW and burn?
Yes, this is total registrations. Check POWRegistrationsThisInterval and BurnRegistrationsThisInterval for the breakdown.

Use Cases

  • Predict whether costs will increase or decrease
  • Monitor registration activity in real-time
  • Research registration patterns
  • Build registration activity dashboards
  • Plan registration timing

From Chain Metadata

MAP ( netuid ) --> registrations_this_interval

Purpose & Usage

Purpose

Track registration rate for difficulty adjustment - compared against target to adjust costs.

Common Query Patterns

  • Query by netuid
  • Predict difficulty changes
  • Monitor registration activity

Migration Notes

v424 v432 Breaking

key type changed from u16 to NetUid

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Query Keys

#NameTypeDescription
1
netuid
NetUid u16netuid (NetUid, hashed key component)

Stored Value

registrations_this_interval (u16)

Default Value

0 0x0000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Relationships

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 RegistrationsThisInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.RegistrationsThisInterval.getValue(netuid);
console.log("RegistrationsThisInterval:", result);

On-Chain Activity

Write Frequency
●●●●●○ High 1M–10M est. writes

1M to 10M writes

#117 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Version History

v101 block 1 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • key : u16 → NetUid

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v101
Current Version
v490