MinChildkeyTakePerSubnet

Storage Map v411 → v490 · 1 shape change

Per-subnet minimum child-key take floor. MAP (netuid ) → u16.

Explore chain
Queried by: subnet ownersvalidatorsanalytics

The Big Picture

The global minimum is one floor; this map raises it per subnet when the owner wants to require a stricter minimum.

Use Cases

  • Enforce a higher child-key take floor on a specific subnet
  • Surface the effective floor to validators when they configure their take

From Chain Metadata

MAP ( netuid ) --> take | Returns the subnet-specific minimum childkey take.

Purpose & Usage

Purpose

Stricter-than-global floor for child-key take on a subnet, set by the subnet's owner or root.

Common Query Patterns

  • Query MinChildkeyTakePerSubnet[netuid]
Part of: Subnet Emission Control

Migration Notes

v424 v432 Breaking

key type changed from u16 to NetUid; value type changed from u16 to PerU16

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
netuid netuid
NetUid u16netuid (NetUid, hashed key component)

Stored Value

take (PerU16)

Default Value

0 0x0000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

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 MinChildkeyTakePerSubnet storage
const netuid = 1;

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

On-Chain Activity

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

Fewer than 10K writes

#357 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 9,385,000

Version History

v411 block 8,283,784 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • key : u16 → NetUid
  • value : u16 → PerU16

Runtime Info

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