Canceled
Event v133 → current #1Emitted when a scheduled task is cancelled before execution.
View events on chainUseful for: developersanalytics
The Big Picture
Confirmation that a scheduled task has been removed and will not execute.
Use Cases
- Confirm task cancellation
- Track cancelled operations
From Chain Metadata
Canceled some task.
Triggers
Emitted by
Preconditions
- Cancel call succeeded
- Task existed at specified position
Effects
Event Data
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Subscribe to Canceled events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Scheduler") &&
event.method === "Canceled"
)
.forEach(({ event }) => {
console.log("Canceled:", event.data.toHuman());
});
});Runtime Info
- Pallet Index
- 15
- Event Index
- 1
- First Version
- v133
- Current Version
- v393