MinChildKeyTakePerSubnetSet

Event v411 → current New #45

Emitted when a subnet 's minimum child-key take floor is updated.

View events on chain
Useful 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

Part of: Subnet Emission Control

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

#NameTypeDescription
0
arg0
→ netuid
u16 NetUidSubnet whose minimum child-key take was updated
1
arg1
→ take
u16 New per-subnet minimum child-key take (u16, basis points where 10000 = 100%)

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