Running a node
A local stack is three processes: a Logos blockchain node (Bedrock, the L1 node), the LEZ indexer and the LEZ sequencer. The sequencer needs a channel on the L1 node, which it creates once during setup.
The canonical commands are in the repository README.md under “Run the sequencer and node”.
With just
just run-bedrock # the L1 node, from Docker
Then just run-indexer and just run-sequencer in their own terminals; both build with --release, and run-sequencer sets up its home from local.json on the first run. The Justfile also carries run-wallet, wallet-import-test-accounts (which gives you a funded account), resolve-bedrock-node, run-monitoring, run-explorer, build-artifacts, test, clean, and the decentralized-sequencing tools committee-watch, channel-health and inscribe-garbage. just --list is authoritative.
Standalone
just run-sequencer-standalone
The sequencer alone, built with the standalone feature, which swaps its L1 client for a mock: the simplest node for writing and testing programs, with no Docker, L1 node or indexer. The first run sets up a home at lez/sequencer/service/sequencer_home, and later runs reuse it; the recipe’s first argument names another.
Without just, run setup as in Manually with --release and your own home (it writes files and contacts no L1), then start a build with the feature:
cargo run --release --features standalone -p sequencer_service -- start <home> \
--rpc-listen-address 127.0.0.1:3141 --metrics-listen-address 127.0.0.1:9141
A second node on one machine must move both ports: the RPC defaults to 127.0.0.1:3040 and the ops server to 0.0.0.0:9000. Point a wallet at it with the new RPC address.
It produces blocks every 15 seconds and serves every wallet and RPC call, but publishes nothing. No block reaches an L1, so none is ever final (Finality), the indexer has nothing to read, and nothing that starts on the L1, such as a bridge deposit, arrives.
Manually
Use the full stack when you need the indexer’s queries or blocks written to an L1. Start each process in its own terminal, in this order. The L1 node first:
just run-bedrock
The node binary is resolved from LEZ’s locked Cargo dependency, not built here. The resolver accepts a release only when its tag, asset checksum and commit match the Cargo-resolved revision; otherwise it builds that exact checkout. See bedrock/README.md.
Then the indexer:
RUST_LOG=info cargo run -p indexer_service lez/indexer/service/configs/debug/indexer_config.json
Then the sequencer, set up once and started thereafter:
cargo run -p sequencer_service -- setup lez/sequencer/service/sequencer_home \
--config lez/sequencer/service/networks/local.json \
--funding-public-key 2e03b2eff5a45478e7e79668d2a146cf2c5c7925bce927f2b1c67f2ab4fc0d26 \
--create-channel
RUST_LOG=info cargo run -p sequencer_service -- start lez/sequencer/service/sequencer_home
That public key is the local Bedrock node’s funded key, fixed for the debug configuration. --create-channel makes the zone exist and is used once: a zone is a channel on the L1, and the sequencer writes into it as inscriptions (Finality).
Optionally the explorer:
cargo install cargo-leptos
cd lez/explorer_service && cargo leptos serve --release
The directory matters: the leptos configuration lives in that crate’s manifest, not the workspace root. just run-explorer runs cargo leptos serve from there, without --release. The explorer is also a service in the root compose file, the easier route if you run the stack that way.
Or all of it in one container stack
A single docker-compose.yml at the repository root runs everything: a development Bedrock node, a four-sequencer committee, the indexer and the explorer, with --profile monitoring adding Prometheus, Grafana, Loki, Tempo and Alloy. Resolve the Bedrock node first with just resolve-bedrock-node, since its image is built from the resolved binary, then run docker compose up. Every host port, image, key path and cross-service URL in the compose file is a variable with a default; .env.local lists them all, and copying it to .env lets you change any.
State lives in named volumes, so the stack resumes across restarts. docker compose down -v gives a fresh chain, and discards the L1 chain too.
Watching it
The sequencer serves /ping, /health and /metrics from one ops server, on a port separate from the RPC so it can be firewalled on its own, by default 0.0.0.0:9000.
That server binds before the sequencer starts, deliberately: /ping and /metrics answer during startup, while /health returns 503 with status "starting" until the sequencer is up, then 200 with "ok", 503 with "failing" if any of its tasks dies, and 503 with "stopping" once it is shutting down. Gossip is excluded from health on purpose: a node that has lost gossip still runs on L1 alone.
The indexer has no HTTP health route. Its equivalent is the checkHealth JSON-RPC method, and a caller must check that the response carries a result, because a JSON-RPC error still arrives as HTTP 200.
Stopping it
Both services shut down on Ctrl-C or on SIGTERM, which a container runtime sends first. The sequencer then stops the ops server and its actors in order (scheduler, RPC server, gossip, supervisor, slasher, L1 client, storage) and waits for each, rather than dropping the handles and exiting: a dropped store stays open for an unbounded stretch, so a quick restart can find its own home locked. Sequencer shutdown complete says it finished properly.
Every flag is also an environment variable
Each start option also reads SEQUENCER_<OPTION>. A flag wins over its environment variable, and both win over the config file. A test checks the mapping for every argument, so the list cannot drift: SEQUENCER_HOME, _CONFIG, _CREATE_CHANNEL, _WAIT_FOR_CHANNEL, _CHANNEL_SIGNING_KEY_FILE, _FUNDING_PUBLIC_KEY, _BEDROCK_NODE_URL, _CHANNEL_ID, _RPC_LISTEN_ADDRESS, _METRICS_LISTEN_ADDRESS, _GOSSIP_LISTEN_ADDR and _GOSSIP_BOOTSTRAP_PEER.
--wait-for-channel makes a node with no genesis poll until the channel’s creator opens it instead of failing, so startup order does not have to be exact; a node that finds the channel already there drops its own genesis and replays the channel’s, so a restarting creator cannot diverge from it. The RPC has no caller authentication, so --rpc-listen-address should only be widened past 127.0.0.1 behind a firewall.
Which network
lez/sequencer/service/networks/ holds local.json, devnet.json and testnet.json, and you choose a network by pointing setup --config or start --config at one. There is no --network flag.
Only local.json carries funded genesis accounts and a small minimum stake, so develop against it. The repository has no faucet and testnet.json funds no account; Setting up the wallet says where testnet tokens come from.
Starting clean
Three directories hold state, and leaving any of them behind gives a confusing half-restart:
- the L1 node’s state: a
statedirectory in thelogos-blockchaincheckout for a native node, or for Docker thebedrock_statevolume, which compose prefixes with the project name (by default the directory it runs from), sojust run-bedrock, run frombedrock/, and the root compose file keep separate ones lez/sequencer/service/sequencer_home, includinggenesis_saltinside it (below)rocksdb-<channel id>, under the directory you started the indexer from, because--data-dirdefaults to the working directory. The RPC port is the--portflag, 8779 by default; neither is a config file key, and the config rejects unknown fields, so a stray key makes the indexer refuse to start
The genesis salt gives each genesis its own zone. The configuration may set it (no shipped network config does); otherwise one is drawn on first use and kept in the home. Recreating the chain from a kept home reuses it, so when the rest of the genesis is fixed, as with a founding set’s signed stake entries in the config, the zone id repeats and the previous chain’s signatures replay (The zone a signature is for). A solo sequencer that stakes itself at genesis signs that stake with fresh randomness each time, so its genesis hash and zone change even with the salt kept. setup --create-channel refuses a kept salt whose store is gone, unless the config sets one; start does not check, and just run-sequencer skips setup when the home already has a sequencer_config.json. Delete the file when you mean to start a new chain.
just clean removes the LEZ side and also takes the Docker stack down with its volumes, resetting the Dockerised L1 chain too.
One upgrade trap: the genesis fingerprint hashes the zone, commitments, nullifiers, publications and recovery bindings as well as the account set, so a sequencer home or indexer store written by a build that hashed only the account set fingerprints differently. The indexer does not stop: it logs that the stored fingerprint does not match and keeps running on its own genesis, the confusing half-restart above. Wipe both stores when you upgrade across that.
Voting channel parameters
Channel parameters can change after genesis by committee vote, under the rule in Sequencer stake; vote-params casts one:
$ sequencer_service vote-params --sequencer-key 0a4cad59... --max-block-size 524288
Voting for ChannelParams { minimum_sequencer_stake: 149, posting_timeframe: 300, posting_timeout: 25, max_block_size: 524288, finality_depth: 35 }: a1c31e0c...
Included in block 273
The channel params are now ChannelParams { ... max_block_size: 524288 ... }, by this vote or others that landed first
On a one-sequencer devnet it carries at once, because one key is two thirds of a committee of one. The finality_depth it shows is not the depth at which zone blocks become final (Finality), and a vote cannot change it.
Parameters you leave out keep their current values, so a vote is a whole parameter set, not a delta. It is signed by the stake’s ownership account, not the signing key passed to --sequencer-key: for a channel you created, that account comes from the home’s sequencer_stake_signing_key, and the wallet must hold it or you get The wallet holds no key for the stake's ownership account <id>; import it with wallet account import public. withdraw-params-vote takes a standing vote back; a vote that already carried, as on a one-sequencer devnet, is no longer standing, and withdrawing it fails with This channel signing key has no vote to withdraw.