MinChildkeyTake

Storage Plain v195 → v490 · 1 shape change

Minimum allowed child key take rate.

Explore chain
Queried by: validatorsdeveloperssubnet owners

The Big Picture

The protocol requires a minimum take for children. This ensures children are compensated for their operations and prevents race-to-bottom dynamics.

Why This Matters

Children can't charge below this rate. It ensures they're compensated fairly for operating infrastructure and providing services.

Example Scenario

Query MinChildkeyTake() returns 500 (5%). All children must charge at least 5% take. Setting lower will fail.

Common Questions

Why is there a minimum?
Prevents race to bottom where children undercut each other to zero. Ensures sustainable economics for child operations.

Use Cases

  • Check minimum required take when setting child take
  • Build UI sliders with correct min bounds
  • Verify protocol limits for child economics
  • Research child key incentive design

From Chain Metadata

ITEM ( min_childkey_take )

Purpose & Usage

Purpose

Floor on child key commission - ensures children receive fair compensation.

Common Query Patterns

  • Single value query
  • Verify take rate is within bounds
  • Build take rate pickers with correct limits

Migration Notes

v424 v432 Breaking

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.

Stored Value

min_childkey_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.

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 MinChildkeyTake storage (no keys - plain value)
const result = await api.query.SubtensorModule.MinChildkeyTake.getValue();
console.log("MinChildkeyTake:", result);

Version History

v195 block 3,791,350 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • value : u16 → PerU16

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v195
Current Version
v490