IsNetworkMember

Storage Map v101 → v490 · 1 shape change

Whether a hotkey is registered on a subnet .

Explore chain
Queried by: minersvalidatorsdeveloperswallets

The Big Picture

A simple yes/no answer: is this hotkey registered on this subnet? More direct than querying Uids and checking for a valid response. This is the canonical membership check.

Why This Matters

Before you can mine, validate, or receive emissions on a subnet, you must be registered. This tells you definitively whether a hotkey is a member of a subnet.

Example Scenario

Query IsNetworkMember(hotkey=your_hotkey, netuid=1) returns true - you're registered on subnet 1. Returns false? You need to register before participating.

Common Questions

How is this different from querying Uids?
IsNetworkMember gives a boolean answer directly. Uids gives the UID if registered, or a default if not. Use IsNetworkMember for simple yes/no checks.
Can I be a member of multiple subnets?
Yes, the same hotkey can register on multiple subnets. Check IsNetworkMember for each subnet you care about.

Use Cases

  • Check if registration succeeded
  • Validate membership before staking or setting weights
  • Build registration status dashboards
  • Gate access to subnet-specific features in applications

From Chain Metadata

DMAP ( hotkey, netuid ) --> bool

Purpose & Usage

Purpose

Quick membership check without UID lookup.

Common Query Patterns

  • Check registration status before operations
  • Validate neuron membership
Part of: Neuron Registration

Migration Notes

v424 v432 Breaking

key type changed from (AccountId, u16) to (AccountId, 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
hotkey
AccountId Hot wallet address (hex -> SS58)
2
netuid
NetUid Subnet ID

Stored Value

Whether hotkey is registered on subnet

Default Value

false 0x00

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 IsNetworkMember storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

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

On-Chain Activity

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

1M to 10M writes

#127 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 : (AccountId, u16) → (AccountId, NetUid)

Runtime Info

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