Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Deploying a node

Prerequisites

This guide assumes that you've deployed the contracts for the rollup to your chosen L1 network, and that you have a valid genesis.json. The contract's solidity code can be downloaded from the GitHub releases or by running:

curl -L https://github.com/lambdaclass/ethrex/releases/latest/download/ethrex-contracts.tar.gz

Starting the sequencer

First we need to set some environment variables.

Run the sequencer

    ethrex l2 \
	--network <path-to-your-genesis.json> \
	--on_chain_proposer_address <address> \
	--bridge_address <address> \
	--rpc_url <rpc-url> \
	--committer_l1_private_key <private-key> \
	--proof_coordinator_l1_private_key \
	--block-producer.coinbase-address <l2-coinbase-address> \

For further configuration take a look at the CLI document

This will start an ethrex l2 sequencer with the RPC server listening at http://localhost:1729 and the proof coordinator server listening at http://localhost:3900

Starting a prover server

ethrex l2 prover --proof-coordinator http://localhost:3900

For further configuration take a look at the CLI document