Scheduler pallet
Derived from live runtime metadata on TRN root (pallet index 3, captured 2026-05-02). For prose-style documentation see Scheduler on the curated reference side.
- Pallet index
3- Calls
- 6
- Events
- 6
- Errors
- 5
- Storage items
- 3
- Constants
- 2
Calls (extrinsics)
Scheduler.schedule
See [
Pallet::schedule].
api.tx.scheduler.schedule(when: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)| Argument | Type | Doc |
|---|---|---|
when | u32 | BlockNumberFor<T> |
maybe_periodic | Option<(u32,u32)> | Option<schedule::Period<BlockNumberFor<T>>> |
priority | u8 | schedule::Priority |
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 0
Scheduler.cancel
See [
Pallet::cancel].
api.tx.scheduler.cancel(when: u32, index: u32)| Argument | Type | Doc |
|---|---|---|
when | u32 | BlockNumberFor<T> |
index | u32 | u32 |
Call index: 1
Scheduler.schedule_named
See [
Pallet::schedule_named].
api.tx.scheduler.schedule_named(id: [u8;32], when: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)| Argument | Type | Doc |
|---|---|---|
id | [u8;32] | TaskName |
when | u32 | BlockNumberFor<T> |
maybe_periodic | Option<(u32,u32)> | Option<schedule::Period<BlockNumberFor<T>>> |
priority | u8 | schedule::Priority |
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 2
Scheduler.cancel_named
See [
Pallet::cancel_named].
api.tx.scheduler.cancel_named(id: [u8;32])| Argument | Type | Doc |
|---|---|---|
id | [u8;32] | TaskName |
Call index: 3
Scheduler.schedule_after
See [
Pallet::schedule_after].
api.tx.scheduler.schedule_after(after: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)| Argument | Type | Doc |
|---|---|---|
after | u32 | BlockNumberFor<T> |
maybe_periodic | Option<(u32,u32)> | Option<schedule::Period<BlockNumberFor<T>>> |
priority | u8 | schedule::Priority |
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 4
Scheduler.schedule_named_after
See [
Pallet::schedule_named_after].
api.tx.scheduler.schedule_named_after(id: [u8;32], after: u32, maybe_periodic: Option<(u32,u32)>, priority: u8, call: Call)| Argument | Type | Doc |
|---|---|---|
id | [u8;32] | TaskName |
after | u32 | BlockNumberFor<T> |
maybe_periodic | Option<(u32,u32)> | Option<schedule::Period<BlockNumberFor<T>>> |
priority | u8 | schedule::Priority |
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 5
Events
Scheduler.Scheduled
Scheduled some task.
| Field | Type | Doc |
|---|---|---|
when | u32 | |
index | u32 |
Scheduler.Canceled
Canceled some task.
| Field | Type | Doc |
|---|---|---|
when | u32 | |
index | u32 |
Scheduler.Dispatched
Dispatched some task.
| Field | Type | Doc |
|---|---|---|
task | (u32,u32) | |
id | Option<[u8;32]> | |
result | Result<Null, SpRuntimeDispatchError> |
Scheduler.CallUnavailable
The call for the provided hash was not found so the task has been aborted.
| Field | Type | Doc |
|---|---|---|
task | (u32,u32) | |
id | Option<[u8;32]> |
Scheduler.PeriodicFailed
The given task was unable to be renewed since the agenda is full at that block.
| Field | Type | Doc |
|---|---|---|
task | (u32,u32) | |
id | Option<[u8;32]> |
Scheduler.PermanentlyOverweight
The given task can never be executed since it is overweight.
| Field | Type | Doc |
|---|---|---|
task | (u32,u32) | |
id | Option<[u8;32]> |
Errors
Scheduler.FailedToSchedule
Failed to schedule a call
Scheduler.NotFound
Cannot find the scheduled call.
Scheduler.TargetBlockNumberInPast
Given target block number is in the past.
Scheduler.RescheduleNoChange
Reschedule failed because it does not change scheduled time.
Scheduler.Named
Attempt to use a non-named function on a named task.
Storage
Scheduler.IncompleteSince
await api.query.scheduler.incompleteSince()Returns: u32
Modifier: Optional
Scheduler.Agenda
Items to be executed, indexed by the block number that they should be executed on.
await api.query.scheduler.agenda(key1)- Key:
u32(hasher: Twox64Concat) - Returns:
Vec<Option<PalletSchedulerScheduled>>
Modifier: Default
Scheduler.Lookup
Lookup from a name to the block number and index of the task. For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4 identities.
await api.query.scheduler.lookup(key1)- Key:
[u8;32](hasher: Twox64Concat) - Returns:
(u32,u32)
Modifier: Optional
Constants
Scheduler.MaximumWeight
The maximum weight that may be scheduled per block for any dispatchables.
Type: {"refTime":"Compact<u64>","proofSize":"Compact<u64>"}
SCALE-encoded value: 0x070040b743ba13cccccccccccccccc
Scheduler.MaxScheduledPerBlock
The maximum number of scheduled calls in the queue for a single block. NOTE: + Dependent pallets' benchmarks might require a higher limit for the setting. Set a higher limit under
runtime-benchmarksfeature.
Type: u32
SCALE-encoded value: 0x32000000
wss://root.rootnet.live/archive/ws · captured 2026-05-02