MinChildKeyTakePerSubnetSet
Event v411 → current New #45Emitted 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
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);
}
});Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 45
- First Version
- v411
- Current Version
- v411