Owner

Storage Map v101 → current

Coldkey owner of a hotkey .

Explore chain
Queried by: walletsvalidatorsdevelopersanalytics

The Big Picture

Hotkeys are the 'working' keys that interact with subnets. But they're controlled by coldkeys, which are kept secure (often offline). This mapping tells you which coldkey controls which hotkey - essential for understanding who actually controls a validator or miner.

Why This Matters

You see a hotkey earning big emissions. Who actually controls it? This reveals the coldkey behind any hotkey - the real owner who can withdraw earnings and control the operation.

Example Scenario

Query Owner(hotkey=5HotKeyAddress...) returns 5ColdKeyAddress.... The coldkey 5ColdKey... is the owner and can perform privileged operations like unstaking.

Common Questions

Can ownership change?
Hotkey ownership is typically permanent. The hotkey is linked to its coldkey at creation and cannot be transferred.
What's the reverse lookup?
Use OwnedHotkeys(coldkey) to get all hotkeys owned by a coldkey. Owner is hotkey→coldkey, OwnedHotkeys is coldkey→[hotkeys].

Use Cases

  • Verify you own a hotkey before performing operations
  • Look up who controls a validator hotkey
  • Build hotkey-to-coldkey relationship graphs
  • Trace ownership for security and compliance analysis

Purpose & Usage

Purpose

Track ownership of hotkeys.

Common Query Patterns

  • Query owner for a hotkey
  • Verify ownership before operations

Query Keys

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)

Stored Value

value (AccountId)

hex -> SS58

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 Owner storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

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

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

<10K estimated writes

#55 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