subsembly
  • Introduction
  • Getting Started
    • Overview
    • Substrate Essentials
    • CLI
      • subsembly init
      • subsembly compile
      • subsembly spec
  • Development
    • Runtime Development
    • Chain Specification
    • Runtime Execution
  • Modules
    • Core
      • System
      • Executive
      • Crypto
      • Log
    • Pre-built
      • Aura
      • Balances
      • Timestamp
      • TransactionPayment
  • Advanced
    • as-scale-codec
    • subsembly-core
    • Metadata
      • Dispatcher
  • Guides
    • Create Your First Subsembly Runtime
      • Set Up
      • Start the Node
      • PolkadotJS
    • Start Your Network
      • Prepare the Network
      • Launch Validator Nodes
      • Launch the Third Node
    • Create a New Module
      • Nicks Module
      • Launch the Node
      • PolkadotJs
Powered by GitBook
On this page

Was this helpful?

  1. Advanced
  2. Metadata

Dispatcher

Dispatcher for incoming extrinsic calls

Overview

Dispatcher is a module with a single function that dispatches incoming calls to the respective modules. It is a derivative of metadata, so it's required to generate metadata first in order to have a dispatcher module.

In essence, the workflow of the dispatcher is the following:

  1. Receive extrinsic bytes from outside

  2. Decode it as a local Extrinsic type

  3. Decode DispatchInfo bytes of the extrinsic

  4. From the resulting Call type, execute the extrinsic call

The dispatcher returns an array of bytes that define the result of the extrinsic execution.

PreviousMetadataNextCreate Your First Subsembly Runtime

Last updated 4 years ago

Was this helpful?