Skip to content
Snippets Groups Projects
Select Git revision
  • aadee12c989481e034b49d38b2e8c26cb227cc0b
  • master default protected
  • fix_picked_up_file_in_runtime_release
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
41 results

beginner-walkthrough.md

Blame
  • runtime-calls.md 42.77 KiB

    Runtime calls

    Calls are categorized according to the dispatch origin they require:

    1. 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.
    2. Root calls: This kind of call requires a special origin that can only be invoked through on-chain governance mechanisms.
    3. Inherent calls: This kind of call is invoked by the author of the block itself (usually automatically by the node).
    4. Disabled calls: These calls can not be called directly, they are reserved for internal use by other runtime calls.

    User calls

    There are 69 user calls from 21 pallets.

    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.

    cancel_named - 3

    cancel_named(id)
    id: TaskName

    Cancel a named scheduled task.

    schedule_after - 4

    schedule_after(after, maybe_periodic, priority, call)
    after: T::BlockNumber
    maybe_periodic: Option<schedule::Period<T::BlockNumber>>
    priority: schedule::Priority
    call: Box<<T as Config>::RuntimeCall>