This event was removed in v127

This event is no longer emitted in the current runtime. Existed from v101 to v127. Shown here for historical reference.

ValidatorBatchSizeSet

Event Removed v101 → v127 (removed) #18

ValidatorBatchSizeSet event from SubtensorModule pallet .

Triggers

Preconditions

  • Caller authorized to make changes

Effects

Postconditions

  • Value successfully updated

Event Data

#NameTypeDescription
0
arg0
u16 Event field #0 (u16)
1
arg1
u16 Event field #1 (u16)

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 ValidatorBatchSizeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ValidatorBatchSizeSet.get(block.hash);
  for (const evt of events) {
    console.log("ValidatorBatchSizeSet:", evt.payload);
  }
});

Runtime Info

View Source
Pallet Index
7
Event Index
18
First Version
v101
Removed In
v127