MinChildkeyTake
Storage Plain v195 → v490 · 1 shape changeMinimum allowed child key take rate.
Explore chainThe 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
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
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Modified By
Related Events
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
- value :
u16→PerU16
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v195
- Current Version
- v490