RegistrationsThisBlock

Storage Map v101 → current

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

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
key1
u16 key1 (u16)

Stored Value

value (u16)

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 RegistrationsThisBlock storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("RegistrationsThisBlock")](
  key1
);

console.log("RegistrationsThisBlock:", result.toHuman());

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

Runtime Info

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