SubnetEmissionEnabledSet
Event v411 → current New #5Emitted when a subnet 's pool-side emission switch is toggled (chain buys and pool injections).
View events on chainUseful for: subnet ownersanalyticsdevelopers
The Big Picture
A surgical pause on pool-side emission for a subnet. The subnet's share is still computed, but the chain-buy/injection plumbing is shut off until re-enabled.
Use Cases
- Track which subnets currently have pool emission on or off
- Alert subnet participants when emission is paused or resumed
From Chain Metadata
Pool-side subnet emission injections and chain buys were enabled or disabled.
Triggers
Preconditions
- sudo_set_subnet_emission_enabled succeeded
Effects
Postconditions
- SubnetEmissionEnabled[netuid] updated
Side Effects
- When disabled, pool-side alpha_in/tao_in/excess_tao paths zero out for the subnet
- Emission share calculation, owner cut, root proportion, and pending emissions are unaffected
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 SubnetEmissionEnabledSet events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.AdminUtils.SubnetEmissionEnabledSet.get(block.hash);
for (const evt of events) {
console.log("SubnetEmissionEnabledSet:", evt.payload);
}
});Runtime Info
View Source- Pallet Index
- 19
- Event Index
- 5
- First Version
- v411
- Current Version
- v411