BlockAtRegistration
Storage Map v101 → v411 Changed in v411Block number when a neuron registered.
Explore chainThe Big Picture
This records when each neuron first registered. Combined with ImmunityPeriod, it determines if a neuron is still protected from pruning. Also useful for tenure analysis - how long have neurons been active?
Why This Matters
Are you still immune from pruning? Check (current_block - BlockAtRegistration) < ImmunityPeriod. Also shows your tenure on the subnet.
Example Scenario
Query BlockAtRegistration(netuid=1, uid=47) returns 7000000. Current block is 7005000. You registered 5000 blocks ago. If ImmunityPeriod is 7200, you're still protected.
Common Questions
- What if I re-register?
- If you're pruned and re-register, BlockAtRegistration updates to the new registration. You get a fresh immunity period.
- Can I check other neurons' registration time?
- Yes, this is public. You can see when any neuron registered and calculate their age and immunity status.
Use Cases
- Check if you're still in immunity period
- Calculate neuron age on a subnet
- Build neuron tenure analytics
- Research registration patterns over time
- Debug immunity-related issues
From Chain Metadata
DMAP ( netuid, uid ) --> block_at_registration
Purpose & Usage
Purpose
Track registration timing for immunity - when did this neuron first appear.
Common Query Patterns
- Query by netuid-uid
- Calculate immunity status
- Research neuron age
Query Keys
Stored Value
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 BlockAtRegistration storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.BlockAtRegistration.getValue(netuid, uid);
console.log("BlockAtRegistration:", result);On-Chain Activity
100K–1M estimated writes
#29 most written storage item
Modified via user-submitted extrinsics
As of block 7,429,232
Version History
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v411