githubEdit

Launch a Chain in Development

To run your chain, you will need to spin up a local network with your chain configuration.

The pop up command can help with this.

pop up network --help

Say we want to spin up a local network for your chain. First we need to define a zombienetarrow-up-right network configuration file. You can do this in the root of your project.

cd my-chain
touch network.toml

Add the following configuration, adapting as necessary.

You can use paseo-local for your Relay chain. Paseo is the community-led Polkadot Test Relay chain.

[relaychain]
chain = "paseo-local"

[[relaychain.nodes]]
name = "alice"
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[parachains]]
id = 2000
default_command = "./target/release/parachain-template-node"

[[parachains.collators]]
name = "collator-01"

This network configuration will launch a relay chain using a paseo-local instance of Polkadot with two validator nodes to run the network: alice and bob. It will also run parachain-template-node with one collator node named collator-01.

Cool. Let's spin this up, ensuring that your chain binary has been built using pop build.

If this is the first time you are running the pop up command, it will prompt you to source the required Polkadot binaries. This will take some time, grab some coffee.

Once all the binaries are sourced, you should have output similar to this.

Congrats! You have now spun up a network with your chain running!

Under-the-hood, Pop CLI uses zombienet to spin up the network. For more advanced network configurations and options consult the zombienet repoarrow-up-right

Detached mode

Use detached mode to keep the network running in the background:

For structured output, use:

In JSON mode, --detach is required and --cmd is not supported.

When detached mode starts, Pop CLI:

  • Prints the network base directory and zombie.json path.

  • Prints WebSocket URLs for relay and parachain nodes.

  • Polls endpoints until nodes are responsive, then confirms readiness.

To stop a detached network later, run pop clean network <path-to-zombie.json> or pop clean network --all.

Learning Resources

Need help?

Ask on Polkadot Stack Exchangearrow-up-right (tag it poparrow-up-right) or drop by our Telegramarrow-up-right. We're here to help!

Last updated