This event was removed in v133

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

SubnetTransferred

Event Removed v133 → v133 (removed) #43

SubnetTransferred event from SubtensorModule pallet .

Event Data

#NameTypeDescription
0
arg0
u16 Event field #0 (u16)
1
arg1
→ account
AccountId Account address (32 bytes, SS58-encoded) (hex -> SS58)
2
arg2
→ account
AccountId Account address (32 bytes, SS58-encoded) (hex -> SS58)

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

Runtime Info

View Source
Pallet Index
7
Event Index
43
First Version
v133
Removed In
v133