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
  • Prerequisites
  • Getting Started

Was this helpful?

  1. Guides
  2. Create Your First Subsembly Runtime

Set Up

Instructions to set up your computer

PreviousCreate Your First Subsembly RuntimeNextStart the Node

Last updated 3 years ago

Was this helpful?

Prerequisites

Your set up needs to meet the following requirements :

  • Node >= 14.0.0

  • make and curl packages

Getting Started

To initialise and compile the runtime, follow the steps in the section. The following steps should be completed before the next step of the guide:

Initialise a new Subsembly project:

subsembly init --to=./subsembly-starter

Compile your runtime:

cd subsembly-starter
subsembly compile

Generate new chain specification file:

subsembly spec --to=./chain-spec.json

Here, you will need to replace or add a new Aura or GRANDPA authority in the chain spec file. For generating your own keys, refer to Substrate . By default chain spec comes with generic address. If you want a different authority, just add the public address of authority inside the array of authorities:

"aura": {
  "authorities": [
    "5FfBQ3kwXrbdyoqLPvcXRp7ikWydXawpNs2Ceu3WwFdhZ8W4"
  ]
}
....
....
"grandpa": {
  "authorities": [
    [
      "5G9NWJ5P9uk7am24yCKeLZJqXWW6hjuMyRJDmw4ofqxG8Js2",
      1
    ]
  ]
}

The last step is very important, since you will have to insert your Aura and GRANDPA keys in the next chapter.

Convert it to raw:

subsembly spec --src=./chain-spec.json --raw=./raw-chain-spec.json --wasm=./build/subsembly-wasm

To learn more about the above commands, please refer to section. After you have successfully completed above steps, go to the next step to see how you can interact with your runtime.

Runtime Development
tutorial
Development