Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Substrate
  3. Fork Off Substrate

Fork Off Substrate

MITJavaScript

A script to bootstrap a new Substrate chain with the current state of a live chain for development and testing.

GitHubGitHub
110 stars61 forks0 contributors

What is Fork Off Substrate?

Fork off Substrate is a Node.js script that allows developers to create a fork of any Substrate-based blockchain by bootstrapping a new chain with the current state of a live network. It solves the problem of needing an isolated, stateful environment for testing smart contracts, runtime upgrades, or other blockchain modifications without interacting with the mainnet. The tool generates a genesis file that can be used to launch a local development chain.

Target Audience

Substrate and Polkadot ecosystem developers who need to test their parachains, pallets, or runtime logic in an environment that mirrors a live network's state.

Value Proposition

Developers choose Fork off Substrate because it provides a straightforward, configurable way to fork live chains without complex setup, supports Docker for reproducibility, and is specifically tailored for the Substrate framework, unlike generic blockchain tools.

Overview

This script allows bootstrapping a new substrate chain with the current state of a live chain

Use Cases

Best For

  • Testing smart contracts or pallets against a real network state
  • Simulating runtime upgrades in a safe, isolated environment
  • Creating development instances of Polkadot or Kusama for experimentation
  • Debugging chain-specific issues without deploying to testnets
  • Educational purposes to study live chain data and behavior
  • Preparing for network migrations or hard forks

Not Ideal For

  • Projects on non-Substrate blockchains like Ethereum or Cosmos
  • Teams requiring fully automated CI/CD pipelines without manual file handling
  • Developers needing to fork only specific parts of the state, not the entire chain

Pros & Cons

Pros

Live State Capture

Captures the exact state of a live Substrate chain at any block, enabling precise testing environments as per the README's usage instructions.

Flexible Configuration

Uses environment variables like HTTP_RPC_ENDPOINT and FORK_CHUNKS_LEVEL to customize the forking process, as detailed in the configuration table.

Docker Support

Provides a Docker image for containerized execution, ensuring portability and ease of use across different systems, mentioned in the Using Docker section.

Parallel Download Optimization

Offers QUICK_MODE to parallelize data retrieval from RPC endpoints, speeding up the forking for large chains.

Sudo Account Replacement

Allows replacing the chain's sudo account with //Alice for easier control in development, as specified with the ALICE environment variable.

Cons

Manual Binary and WASM Setup

Requires users to manually copy the chain binary and runtime WASM blob into a data folder, which can be cumbersome and error-prone.

Dependence on Live RPC Endpoints

The tool fails if the specified RPC endpoint is unavailable or slow, impacting reliability.

Limited to Substrate Ecosystems

Only supports Substrate-based blockchains, so it's not applicable for other blockchain frameworks.

Resource-Intensive for Large Chains

Downloading full state from large chains can be time-consuming and require significant bandwidth, even with optimization.

Frequently Asked Questions

Quick Stats

Stars110
Forks61
Contributors0
Open Issues4
Last commit2 years ago
CreatedSince 2020

Tags

#kusama#rpc-client#development-tool#polkadot#substrate#testing#docker

Built With

N
Node.js
D
Docker

Included in

Substrate777
Auto-fetched 10 hours ago

Related Projects

Polkadot-JS ExtensionPolkadot-JS Extension

Simple browser extension for managing Polkadot and Substrate network accounts in a browser. Allows the signing of extrinsics using these accounts. Also provides a simple interface for compliant extensions for dapps.

Stars1,021
Forks458
Last commit1 month ago
polkadot-launchpolkadot-launch

Simple CLI tool to launch a local Polkadot test network

Stars464
Forks92
Last commit3 years ago
SidecarSidecar

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

Stars268
Forks160
Last commit1 month ago
ArchiveArchive

Blockchain Indexing Engine

Stars199
Forks72
Last commit3 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub