Rescinded

Event v149 → current #16

Emitted when total issuance is decreased.

View events on chain

From Chain Metadata

Total issuance was decreased by `amount`, creating a debt to be balanced.

Triggers

Preconditions

  • Issuance decrease authorized

Effects

Postconditions

  • Total issuance decreased by amount

Side Effects

  • Creates debt to be balanced

Event Data

#NameTypeDescription
0
amount
u64 T::Balanceamount: Balance in chain native currency (RAO for TAO; ÷10⁹) (RAO -> TAO (/ 10^9))

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

Runtime Info

Pallet Index
5
Event Index
16
First Version
v149
Current Version
v411