Lido Local DevNet is a powerful tool for deploying and testing the Lido protocol in a local Ethereum network. It provides a streamlined process for launching Ethereum nodes, block explorers, Lido smart contracts, Lido oracles, and essential tooling.
- Run Ethereum + Lido locally – Deploy and test the full Lido protocol on your machine.
- One-command setup – Spin up a complete test environment with a single command.
- Multi-node support – Test the protocol on all available Ethereum node implementations.
- Highly customizable deployment – Fine-tune deployment parameters to fit specific testing needs.
- Modular execution – The project is structured as a set of commands, allowing you to rerun any step independently.
- Multiple parallel environments – Run several test networks on the same machine to validate different scenarios.
- Git branch-aware deployment – Deploy and execute scripts and from different Git branches, simulating real-world deployment workflows.
- Integrated tooling – Built-in support for block explorers, oracles, and auxiliary services to streamline testing.
- Seamless debugging – Restart individual services or redeploy specific components without affecting the entire setup.
- Node.js >=20,<23 (Install Node.js)
- npm (Install npm)
- Docker 27+ (Install Docker)
- Docker Compose V2 (Install Docker Compose)
- Kurtosis 1.11.1+ (Install Kurtosis)
- Foundry tools (Install Foundry)
- Just (Install Just)
- Make 4+ (Install Make - Linux:
sudo apt-get install build-essential) - Kubectl v1.30.+ (for k8s deployments) (Install Kubectl)`
- Helm 3.12+ (for k8s deployments) (Install Helm)`
Original docs are located in https://docs.kurtosis.com/k8s/
yarn && yarn build:allcp .env.sample .env./bin/run.js ssh tunnelContexts can be found by running: kubectl config get-contexts
kubectl config use-context <cluster context> # or whatever your k8s context isThe cluster can be accessible via SSH Tunnel.
kubectl cluster-infoUpdate once your kurtosis config at echo $(kurtosis config path) location
config-version: 6
should-send-metrics: false
kurtosis-clusters:
docker:
type: "docker"
cloud:
type: "kubernetes"
config:
kubernetes-cluster-name: "<cluster name from kubectl>" # change the cluster name if needed
storage-class: "ssd-hostpath"
enclave-size-in-megabytes: 256# tell kurtosis to work with k8s cluster
kurtosis cluster set cloud # or whatever your kurtosis cluster isKurtosis is required to launch Ethereum nodes
kurtosis engine startBelow is an example for launching the fusaka test stand.
If you need a different setup, refer to the test stands documentation.
./bin/run.js stands <stand-name> # (fusaka) or any other test stand nameFor contract verification, use the --verify flag:
./bin/run.js stands <stand-name> --verifyFor a full DSM infrastructure deployment, add the --dsm flag:
./bin/run.js stands <stand-name> --verify --dsmSince voting scripts require Python and Brownie, install the necessary dependencies:
./bin/run.js voting installIf errors occur, install any missing modules as prompted.
Next, add an account. Brownie does not automatically fetch account settings, but a console interface simplifies automation. Run the following command and enter the private key displayed in the logs:
./bin/run.js voting add-accountAfter adding an account, proceed with the voting process. See the voting documentation for more details. Below is an example for transitioning the protocol to the Pectra hard fork. If you need a different setup, refer to the documentation.
Before Pectra:
./bin/run.js voting enact-before-pectraAfter Pectra:
./bin/run.js voting enact-after-pectraThe network, infrastructure, and protocol have been successfully launched.
To stop the DevNet and remove all services, run:
./bin/run.js downThe devnet supports three modes for how EL/CL nodes are provided:
Full local devnet with Kurtosis-managed nodes. This is the legacy mode.
./bin/run.js chain up # default, same as kurtosis
./bin/run.js chain up --mode kurtosis # explicit
./bin/run.js chain up --mode kurtosis --preset fusaka-devnet2Deploy your own EL/CL nodes in Kubernetes using Helm charts (lido-el-node, lido-cl-node). Useful for running on real testnets (Hoodi, Holesky) or custom ethpandaops devnets.
# Deploy nodes on Hoodi
./bin/run.js chain up --mode self-hosted --network hoodi --elClient geth --clClient lighthouseFor custom devnets (e.g., ethpandaops ePBS/Fusaka devnets), you need to:
- Download network config from the ethpandaops GitHub:
./bin/run.js chain fetch-network-config --repo epbs-devnets --devnet devnet-0This downloads genesis.json, config.yaml, genesis.ssz, enodes.txt, bootstrap_nodes.yaml into artifacts/<stand>/network-config/.
- Deploy with custom Docker images and genesis.ssz URL (for large genesis files that exceed the 1MB K8s ConfigMap limit):
./bin/run.js chain up --mode self-hosted \
--network epbs-devnet-0 \
--elClient geth --clClient prysm \
--elImage ethpandaops/geth:epbs-devnet-0 \
--clImage ethpandaops/prysm-beacon-chain:epbs-devnet-0-sync \
--genesisSSZUrl https://raw.githubusercontent.com/ethpandaops/epbs-devnets/master/network-configs/devnet-0/metadata/genesis.sszSelf-hosted flags:
| Flag | Description |
|---|---|
--elClient |
EL client: geth (default) or reth |
--clClient |
CL client: lighthouse, prysm, or teku |
--elImage |
Custom Docker image for EL (e.g., ethpandaops/geth:epbs-devnet-0) |
--clImage |
Custom Docker image for CL (e.g., ethpandaops/prysm-beacon-chain:epbs-devnet-0-sync) |
--genesisSSZUrl |
URL to download genesis.ssz (for files >1MB, downloaded via init container) |
--checkpointSyncUrl |
Checkpoint sync URL for the CL client |
Notes on custom devnets:
- Bootnodes are automatically read from
enodes.txt(EL) andbootstrap_nodes.yaml(CL) in the network-config directory - For custom networks, geth uses
--syncmode=full(not snap) to enable sequential block processing - For ePBS devnets, use Prysm with the
-synctag instead of Lighthouse (Lighthouse has a known sync stall at the Gloas fork boundary) - Lighthouse requires
--epochs-per-migration=99999for ePBS networks (added automatically)
- Deploy is slow.
stands glamsterdam-full/stands glamsterdam-kurtosisrunslidoCoredao-deploy.shend-to-end:yarn install+yarn buildoflido-core(~3-5 min, ~1300 packages)- 12+ migration scripts deploying ~50 contracts via hardhat + forge (~10-20 min)
- Plus CSM contracts + CMv2 contracts + activations + operators + KAPI startup (~5-10 min)
- Expect 20-40 min end-to-end for a clean run. Retries take ≈ as long because
git reset --hard origin/<ref>runs each invocation (see "State preservation" below).
- Deployer ETH is limited on public devnets — full redeploy is
EXPENSIVE. On public ethpandaops devnets, the deployer is a
dedicated wallet that gets a fixed ETH allocation at devnet
genesis (defined in the network's
genesis.jsoninitial allocations). Its private key + address live in 1Password and inartifacts/<devnet>/wallets.yml(synced into the cli-pod viachain wallet-sync-from-k8s-configmap). The initial allocation is typically enough for 1-3 full Lido protocol deploys, not unlimited — there is no faucet top-up on most ethpandaops devnets, the wallet is one-shot. Every failed deploy retry consumes real ETH for tx fees + contract creation; under EIP-8037 contract-creation costs are higher than mainnet (CodeDepositGas raised), so each full pass burns through a non-trivial fraction of the deployer balance. Several full retries WILL deplete the balance and leave you unable to continue. Mitigations:- Check deployer balance before each retry — address from
artifacts/<devnet>/wallets.yml(deployerentry), theneth_getBalanceagainst the EL ingress. - Some ethpandaops devnets ship a faucet (look at the relevant
devnet's homepage under
ethpandaops.io/networks); not all do. If no faucet, you only get what the genesis allocation gave you. - Avoid full retries when only a late step (e.g.
0100-deploy-circuit-breaker.ts) fails — back uplidoCore/deployed-local-devnet.jsonand rerun only the broken step manually (see "State preservation" below)
- Check deployer balance before each retry — address from
- State preservation across retries. The deploy state file
lidoCore/deployed-local-devnet.jsonis gitignored —git reset --hardinGitCheckoutdoes NOT touch it, so previously-deployed contract addresses persist across stand retries automatically. Do NOT manuallyrmthis file between retries unless you actually want a fresh full redeploy; each step (0010-...,0020-..., etc.) checks the state and skips if its output is already populated. If you must reset, save a backup first:cp deployed-local-devnet.json /tmp/state-backup-$(date +%s).json. - Forge-driven steps don't honor stand
gasLimitparam.0100-deploy-circuit-breaker.ts(and any other step that clones a separate repo and runsforge script) uses forge's own gas estimator, which on EIP-8037 chains under-estimates because it doesn't account for the raisedCodeDepositGas. Pass--gas-limit 50000000(or similar high value) explicitly to such forge invocations — otherwise the tx getsgas_limit ≈ 1.4M, the EIP-7825 split leavesstate_reservoir = 0, and code-deposit OOGs. SeeFINDING-EIP7825-dao-factory.mdin~/Projects/Lido/artifacts/glamsterdam-devnet-4/for the analysis. - Patches to
lidoCorescripts are blown away each stand run. The stand callsGitCheckout { service: "lidoCore", ref: "develop" }which performsgit reset --hard origin/develop. Any inline edits tolidoCore/scripts/*are wiped on the next run. If you need a persistent fix, forklidoCoreand change the stand'slidoCoreref to the fork's branch.
Attach to already running external nodes without launching anything.
./bin/run.js chain up --mode external --el-url http://my-el:8545 --cl-url http://my-cl:5052
./bin/run.js chain up --mode external --el-url http://my-el:8545 --cl-url http://my-cl:5052 --el-ws-url ws://my-el:8546For self-hosted and external modes, wallets can be managed via wallets.yml:
# artifacts/<stand>/wallets.yml
deployer:
privateKey: "0x..."
publicKey: "0x..."
oracle1:
privateKey: "0x..."
publicKey: "0x..."
# ... etc.Sync wallets from/to K8s ConfigMap:
./bin/run.js chain wallet-sync-from-k8s-configmap
./bin/run.js chain wallet-sync-to-k8s-configmapSync state from/to K8s ConfigMap:
./bin/run.js chain state-sync-from-k8s-configmap
./bin/run.js chain state-sync-to-k8s-configmapSee config.hoodi.example.yml for a complete Hoodi testnet configuration with real contract addresses from docs.lido.fi.
# Quick start with the Hoodi stand
./bin/run.js stands hoodi-self-hosted
# Or step by step:
./bin/run.js chain up --mode self-hosted --network hoodi
./bin/run.js kapi-k8s upTo run multiple devnets on a single cluster, change the DEVNET_NAME=<another_devnet> variable in .env file.
If DEVNET_NAME is empty, root deploy commands such as stands ... or chain up will auto-generate a readable name and save it to .env.
You can still override the name manually with --network <name>; that flag also works for service build/rebuild commands.
All the commands will be executed in the context of the current devnet.
To get the latest information on available services, run:
./bin/run.js chain infoTo get the latest information on available services, run:
./bin/run.js configThis repository provides a high-level interface for managing DevNet. However, if you need to restart a specific service or deployment step, refer to the command documentation.
For a comprehensive understanding of the project architecture, including the command system, services, state management, and how to extend the project, please refer to the Architecture Guide.
If you want to start developing your own commands, read the short guide on the core API. For a deeper understanding of the architecture and design patterns, see the Architecture Guide.