MinChildKeyTakePerSubnetSet
Event v411 → v422, v423 → v424, v432 → v440, v441 → current #47Emitted when a subnet 's minimum child-key take floor is updated.
View events on chainUseful for: subnet ownersvalidatorsanalytics
The Big Picture
Subnet owners can require a stricter child-key take minimum than the global floor. This event records each such adjustment.
Use Cases
- Track per-subnet child-key take floors
- Notify validators that the floor on a subnet they participate in has changed
From Chain Metadata
subnet-specific minimum childkey take set
Migration Notes
v424 v432 Breaking
arg0 changed from u16 to NetUid; arg1 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.
Triggers
Preconditions
- sudo_set_min_childkey_take_per_subnet succeeded
Effects
Postconditions
- MinChildkeyTakePerSubnet[netuid] updated
Side Effects
- Validators on the subnet using a child-key take below the new floor must adjust
Event Data
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);
// Subscribe to MinChildKeyTakePerSubnetSet events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.MinChildKeyTakePerSubnetSet.get(block.hash);
for (const evt of events) {
console.log("MinChildKeyTakePerSubnetSet:", evt.payload);
}
});Version History
v411 block 8,283,784 2 args
v423 block 8,486,593 2 args
v432 block 8,636,190 2 args
v441 block 8,765,683 2 args Current
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 47
- First Version
- v411
- Current Version
- v472