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.

NetworkConnectionAdded

Event Removed v101 → v127 (removed) #34

NetworkConnectionAdded event from SubtensorModule pallet .

Triggers

Effects

Postconditions

  • Item successfully added

Event Data

#NameTypeDescription
0
arg0
u16 Event field #0 (u16)
1
arg1
u16 Event field #1 (u16)
2
arg2
u16 Event field #2 (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 NetworkConnectionAdded events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkConnectionAdded.get(block.hash);
  for (const evt of events) {
    console.log("NetworkConnectionAdded:", evt.payload);
  }
});

Runtime Info

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