Select Git revision
-
Cédric Moreau authoredCédric Moreau authored
runtime-calls.md 48.40 KiB
Runtime calls
Calls are categorized according to the dispatch origin they require:
- User calls: the dispatch origin for this kind of call must be signed by the transactor. This is the only call category that can be submitted with an extrinsic.
- Root calls: This kind of call requires a special origin that can only be invoked through on-chain governance mechanisms.
- Inherent calls: This kind of call is invoked by the author of the block itself (usually automatically by the node).
- Disabled calls: These calls can not be called directly, they are reserved for internal use by other runtime calls.
User calls
There are 80 user calls from 23 pallets.
Account - 1
unlink_identity - 0
unlink_identity()
unlink the identity associated with the account
Scheduler - 2
schedule - 0
schedule(when, maybe_periodic, priority, call)
when: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>
Anonymously schedule a task.
cancel - 1
cancel(when, index)
when: T::BlockNumber
index: u32
Cancel an anonymously scheduled task.
schedule_named - 2
schedule_named(id, when, maybe_periodic, priority, call)
id: TaskName
when: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>
Schedule a named task.