RegistrationsThisInterval
Storage Map v101 → v490 · 1 shape changeRegistrations in current adjustment interval.
Explore chainThe 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
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
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | NetUid u16 | netuid (NetUid, hashed key component) |
Stored Value
registrations_this_interval (u16)
Default Value
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Modified By
Related Events
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
1M to 10M writes
#117 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- key :
u16→NetUid
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v490