Examples
All examples are in crates/examples/.
Run Rust examples with cargo run --example <example_name>.
Spawn from config files with zombie-cli spawn -p <provider> <config-file>.
Basic Network Setup
Start here to understand network configuration patterns.
| Example | Description |
|---|---|
simple_network_example | Minimal relay chain with two validators using TOML config |
small_network_with_default | Override default command and image for all nodes |
small_network_with_base_dir | Custom base directory for node data |
small_network_config | Minimal programmatic configuration |
Parachain Lifecycle
Configure, register, and manage parachains.
| Example | Description |
|---|---|
small_network_with_para | Basic relay + parachain topology |
register_para | Register parachain via extrinsic |
add_para | Add parachain to running network |
para_upgrade | Runtime upgrade on running parachain |
two_paras_same_id | Handling duplicate parachain IDs |
Node Groups
Scale networks with grouped nodes.
| Example | Description |
|---|---|
big_network_with_group_nodes | Programmatic network with grouped nodes |
network_example_with_group_nodes | TOML config with group nodes |
Advanced Configuration
| Example | Description |
|---|---|
resource_limits | CPU and memory limits for containers |
wasm-override | Custom WASM runtime override |
arg_removal | Remove default CLI arguments |
db_snapshot | Database snapshots for faster init |
docker_db_snapshot | DB snapshots in Docker environments |
raw_spec_override | Override raw chain spec fields |
Chain Spec Generation
| Example | Description |
|---|---|
chain_spec_generation | Dynamic chain spec generation |
chain_spec_runtime_kusama | Kusama with custom runtime WASM |
polkadot_people_wasm_runtime | Polkadot + People parachain with custom runtimes |
genesis_state_generator_example | Custom genesis state generator |
Keys and Security
| Example | Description |
|---|---|
keystore_key_types | Keystore directories and key type validation |
chain_spec_key_types | Chain spec session key configuration |
evm_parachain_session_key | EVM parachain session keys |
Network Utilities
| Example | Description |
|---|---|
from_live | Attach to running network via zombie.json |
test_run_script | Run scripts on nodes |
Config Files
Example TOML configs are in crates/examples/examples/configs/:
| Config | Description |
|---|---|
simple.toml | Basic two-validator relay chain |
simple-group-nodes.toml | Relay chain with node groups |
resource_limits.toml | Container resource limits |
wasm-override.toml | WASM runtime override |
arg-removal.toml | CLI argument removal |
polkadot-ah-chain-spec-runtime.toml | Polkadot + Asset Hub with custom runtimes |