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
  • Overview
  • Example

Was this helpful?

  1. Modules
  2. Core

Executive

Overview

Acts as the orchestration layer for the runtime. Receives incoming extrinsic calls, decodes them and dispatches the calls to the respective modules of the runtime. It uses System library for accessing the low-level storage and performing some important actions during the block production phase.

Example

Runtime API entry Core_initialize_blockcalls initializeBlock function of the Executive module.

export function Core_initialize_block(data: i32, len: i32): u64 {
    const input = Serialiser.deserialiseInput(data, len);
    const header = BytesReader.decodeInto<HeaderType>(input);
    Executive.initializeBlock(header);
    return Serialiser.serialiseResult([]);
}

PreviousSystemNextCrypto

Last updated 4 years ago

Was this helpful?