IsNetworkMember
Storage Map v101 → currentWhether a hotkey is registered on a subnet .
Explore chainQueried 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
Purpose & Usage
Purpose
Quick membership check without UID lookup.
Common Query Patterns
- Check registration status before operations
- Validate neuron membership
Query Keys
Stored Value
Whether hotkey is registered on subnet
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 IsNetworkMember storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("IsNetworkMember")](
key1,
key2
);
console.log("IsNetworkMember:", result.toHuman());On-Chain Activity
Write Frequency
●●●●○○ Medium 100K–1M est. writes
100K–1M estimated writes
#28 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