SubnetOwnerHotkey

Storage Map v233 → current

Hotkey associated with subnet owner .

Explore chain
Queried by: subnet ownersdevelopersanalytics

The Big Picture

Subnet owners have an associated hotkey for receiving emissions and performing owner operations. This maps each subnet to its owner hotkey.

Use Cases

  • Find owner hotkey for a subnet
  • Verify owner operations
  • Build owner management tools

From Chain Metadata

MAP ( netuid ) --> subnet_owner_hotkey

Purpose & Usage

Purpose

Link subnet ownership to a specific hotkey.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (AccountId)

hex -> SS58

Relationships

Modified By

Related Events

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

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

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

Runtime Info

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