TotalIssuanceForced
Event v151 → current #21Emitted when total issuance is forcefully changed.
View events on chainFrom Chain Metadata
The `TotalIssuance` was forcefully changed.
Triggers
Emitted by
Preconditions
- Caller has root/sudo privileges
Effects
Storage Modified
Postconditions
- Total issuance set to new value
Side Effects
- Administrative operation - may not balance
Event Data
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 TotalIssuanceForced events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Balances.TotalIssuanceForced.get(block.hash);
for (const evt of events) {
console.log("TotalIssuanceForced:", evt.payload);
}
});Runtime Info
- Pallet Index
- 5
- Event Index
- 21
- First Version
- v151
- Current Version
- v411