ColdkeySwapDisputed

Event v385 → v402, v411 → current Changed in v411 #71

A coldkey swap has been disputed.

View events on chain

From Chain Metadata

A coldkey swap has been disputed.

Triggers

Event Data

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

Version History

v385 block 7,782,670 1 args
v411 block 8,283,784 1 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
71
First Version
v385
Current Version
v411