RegistrationsThisBlock

Storage Map v101 → v411

Registrations in current block .

Explore chain
Queried by: developersanalytics

The Big Picture

Each block has a limit on registrations (MaxRegistrationsPerBlock). This counter tracks how many have happened this block. When it reaches the limit, additional registrations must wait for the next block.

Why This Matters

Registration failed with rate limit error? Too many registrations this block. Check this value vs MaxRegistrationsPerBlock to see if you need to wait.

Example Scenario

Query RegistrationsThisBlock(netuid=1) returns 2. Max is 3. One more registration can happen this block; after that, wait for the next block.

Common Questions

Why limit per-block?
Prevents registration spam in a single block. Spreads activity over time and gives everyone a fair chance.
What if the block is full?
Your registration fails or queues for the next block, depending on implementation. Try again in the next block.

Use Cases

  • Check if registration slots are available this block
  • Monitor real-time registration activity
  • Debug registration failures from rate limits
  • Research registration patterns at block level
  • Build registration timing tools

From Chain Metadata

MAP ( netuid ) --> Registrations of this Block.

Purpose & Usage

Purpose

Track per-block registration count - enforces rate limits.

Common Query Patterns

  • Query by netuid
  • Check registration availability
  • Monitor block-level activity

Query Keys

#NameTypeDescription
1
netuid
u16 netuid (u16, hashed key component)

Stored Value

Registrations (u16)

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

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

On-Chain Activity

Write Frequency
●●●●○○ Medium 100K–1M est. writes

100K–1M estimated writes

#43 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 7,429,232

Version History

v101 block 1 Added
v123 block 720,235 Internal re-bind
v149 block 3,014,339 Internal re-bind
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind Current

Runtime Info

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