Substrate Parachain boilerplate
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
1. Introduction
2. Overview
3. Building
4. Run
5. Development
Welcome to the Substrate Boilerplate! This is a starting point for building custom blockchains using the Substrate blockchain development framework from Parity Technologies.
Substrate is a modular and scalable framework that allows you to easily create custom blockchains with unique features and functionalities. The Substrate Boilerplate provides a template for building a Substrate-based blockchain with a basic set of features and components.
The Substrate Boilerplate includes the following features:
- Consensus: Proof of Authority (PoA, Aura) consensus algorithm
- Governance: Council-based governance model
- Token: Native token with initial supply
- Runtime Modules: Example runtime modules for accounts, balances, and identity
With these features, you can quickly create a basic blockchain with a built-in token economy and governance system.
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
and install rust nightly:
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
and install other dependencies like profobuf, llvm:
# MacOS
brew install llvm protobuf
# Ubuntu
sudo apt-get install -y protobuf-compiler llvm
build infra-did node:
cargo build --release
You can start local development chain
./target/release/parachain-template-node --dev --alice --tmp
or start local chain
./target/release/parachain-template-node --chain=local --alice --tmp
You can start local development parachain with relay chain using zombienet
zombienet spawn --provider native zombienet/local-dev.toml
And apply rust formatter
cargo +nightly fmt