Scheduled
Event v133 → v148, v149 → current #0Emitted when a task is successfully scheduled for future execution.
View events on chainUseful for: developersanalytics
The Big Picture
Confirmation that a call has been queued for future execution at the specified block.
Use Cases
- Confirm task was scheduled
- Track scheduled operations
- Build scheduling dashboards
From Chain Metadata
Scheduled some task.
Triggers
Preconditions
- Schedule call succeeded
- Agenda had capacity at target block
Effects
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 Scheduled events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Scheduler.Scheduled.get(block.hash);
for (const evt of events) {
console.log("Scheduled:", evt.payload);
}
});Version History
v133 block 1,404,224 2 args
v149 block 3,014,339 2 args Current
Runtime Info
- Pallet Index
- 15
- Event Index
- 0
- First Version
- v133
- Current Version
- v411