paritytech/polkadot-launch is a open-source project on GitHub, written primarily in TypeScript. It has 464 stars. Simple CLI tool to launch a local Polkadot test network
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This project has been deprecated. Please use one of the following alternatives:
zombienet
parachain-launch
polkadot-launch
Simple CLI tool to launch a local Polkadot test network.
Install
yarn global add polkadot-launch
Or, if you use npm:
npm i polkadot-launch -g
Binary Files
To use polkadot-launch, you need to have binary files for a polkadot relay chain and a
polkadot-parachain in the bin folder.
If you are on an Apple M1 ARM chip, make sure you are using the stable-aarch64-apple-darwin toolchain to compile the binaries.
You can generate these files by cloning the rococo-v1 branch of these projects in the same root as the polkadot-launch repo
and building them with the specific flags below:
The required configuration file defines the properties of the network you want to set up.
You may use a json or a js file.
You can see the examples:
config.json
config.js
You may find the .js alternative more convenient if you need comments, trailing commas or if you prefer do dedup some portions of the config.
relaychain
bin: The path of the Polkadot relay chain binary used
to setup your test network. For example <path/to/polkadot>/target/release/polkadot.
chain: The chain you want to use to generate your spec (probably rococo-local).
nodes: An array of nodes that will be validators on the relay chain.
name: Must be one of alice, bob, charlie, or dave.
wsPort: The websocket port for this node.
port: The TCP port for this node.
nodeKey: a secret key used for generating libp2p peer identifier. Optional.
basePath: The directory used for the blockchain db and other outputs. When unspecified, we use
--tmp.
flags: Any additional command line flags you want to add when starting your node.
genesis: A JSON object of the properties you want to modify from the genesis configuration.
Non-specified properties will be unchanged from the original genesis configuration.
These variable are fed directly into the Polkadot binary and used to spawn a node:
parachains is an array of objects that consists of:
bin: The path of the collator node
binary used to create
blocks for your parachain. For example
<path/to/substrate-parachain-template>/target/release/polkadot-parachain.
id: The id to assign to this parachain. Must be unique.
wsPort: The websocket port for this node.
port: The TCP port for this node.
balance: (Optional) Configure a starting amount of balance on the relay chain for this chain's
account ID.
chain: (Optional) Configure an alternative chain specification to be used for launching the
parachain.
basePath: The directory used for the blockchain db and other outputs. When unspecified, we use
--tmp.
flags: Any additional command line flags you want to add when starting your node.
These variables are fed directly into the collator binary and used to spawn a node:
This is similar to parachains but for "simple" collators like the adder-collator, a very simple
collator that lives in the polkadot repo and is meant just for simple testing. It supports a subset
of configuration values:
bin: The path to the collator binary.
id: The id to assign to this parachain. Must be unique.
port: The TCP port for this node.
balance: (Optional) Configure a starting amount of balance on the relay chain for this chain's
account ID.
hrmpChannels
Open HRMP channels between the specified parachains so that it's possible to send messages between
those. Keep in mind that an HRMP channel is unidirectional and in case you need to communicate both
ways you need to open channels in both directions.
Or you can specify a path to the type definition json file instead:
"types": "./typedefs.json"
finalization
A simple boolean flag for whether you want to make sure all of the transactions submitted in
polkadot-launch wait for finalization.
How Does It Work?
This tool just automates the steps needed to spin up multiple relay chain nodes and parachain nodes
in order to create a local test network.
You can add the -v or --verbose flag to see what processes it is invoking and with which arguments.
child_process is used to execute commands on your
node:
We build a fresh chain spec using the chain parameter specified in your config.
Includes the authorities you specified.
Includes changes to the paras.
Includes parachains you have added.
wasm is generated using the <node> export-genesis-wasm subcommand.
header is retrieved by calling api.rpc.chain.getHeader(genesis_hash).
The final file is named <chain>-raw.json.
We spawn new node instances using the information provided in your config. Each node produces a
<name>.log file in your working directory that you can use to track the output. For example:
tail -f alice.log # Alice validator on the relay chain
# or
tail -f 9988.log # Collator for Parachain ID 200 on wsPort 9988
polkadot-js api is used to connect to these spawned nodes over
their WebSocket endpoint.
Development
To work on this project, you will need yarn.
Install all NodeJS dependencies with:
yarn
Start the application with:
yarn start config.json
When you have finished your changes, make a pull
request to this repo.
Get Help
Open an issue if you have problems or
feature requests!
How active is development on paritytech/polkadot-launch?
The most recent commit recorded on paritytech/polkadot-launch was 3.5 years ago, based on the GitHub push timestamp. The repository has 93 forks — one of the better signals of community interest.
How many stars does paritytech/polkadot-launch have?
paritytech/polkadot-launch has 464 GitHub stars — refresh the page for the live number, or check github.com/paritytech/polkadot-launch. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is paritytech/polkadot-launch open source?
Yes — paritytech/polkadot-launch ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/paritytech/polkadot-launch.
What is paritytech/polkadot-launch?
paritytech/polkadot-launch (paritytech/polkadot-launch) is a TypeScript project on GitHub. From the project's own README: Simple CLI tool to launch a local Polkadot test network
Where do I read more about paritytech/polkadot-launch?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/paritytech/polkadot-launch is the definitive source.
Read full README in the tab above.
Is polkadot-launch worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of polkadot-launch.