Skip to main content

Cli

sedge cli run the setup tool on an interactive mode.

Help

$ sedge cli -h
This command will guide you through the process of setting up one of these node types:

- Full Node (execution + consensus + validator)
- Full Node without Validator (execution + consensus)
- Execution Node
- Consensus Node
- Validator Node
- Lido CSM Node

Follow the prompts to select the options you want for your node. At the end of the process, you will
be asked to run the generated setup or not. If you chose to run the setup, it will be executed for you
using docker compose command behind the scenes.

Usage:
sedge cli [flags]

Flags:
-h, --help help for cli

Global Flags:
--log-level string Set Log Level, e.g panic, fatal, error, warn, warning, info, debug, trace (default "info")

Execution Example

As this is an interactive command, it will ask you a series of questions to set up your node. According to the answers, it will create a flow of questions and generate a docker-compose.yml and a .env file with the configuration you selected.

This is an example of what you can expect:

$ sedge cli
2024-10-16 17:51:44 -- [INFO] [Logger Init] Log level: info
2024-10-16 17:51:46 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
? Select node setup ethereum-node
? Select network mainnet
? Select node type full-node
? Generation path /root/sedge-data
? Container tag, sedge will add to each container and the network, a suffix with the tag
? Do you want to set up a validator? Yes
? Enable MEV Boost? Yes
? Mev-Boost image flashbots/mev-boost:latest
? Insert relay URLs if you don't want to use the default values listed below Default values are listed below. (
? Insert relay URLs if you don't want to use the default values listed below Default values are listed below.

https://0xa7ab7a996c8584251c8f925da3170bdfd6ebc75d50f5ddc4050a6fdc77f2a3b5fce2cc750d0865e05d7228af97d69561@agnostic-relay.net
https://0x9000009807ed12c1f08bf4e81c6da3ba8e3fc3d953898ce0102433094e5f22f21102ec057841fcb81978ed1ea0fa8246@builder-relay-mainnet.blocknative.com
https://0xad0a8bb54565c2211cee576363f3a347089d2f07cf72679d16911d740262694cadb62d7fd7483f27afd714ca0f1b9118@bloxroute.ethical.blxrbdn.com
https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com
https://0xb0b07cd0abef743db4260b0ed50619cf6ad4d82064cb4fbec9d3ec530f7c5e6793d9f286c4e082c0244ffb9f2658fe88@bloxroute.regulated.blxrbdn.com
https://0xb3ee7afcf27f1f1259ac1787876318c6584ee353097a50ed84f51a1f21a323b3736f271a895c7ce918c038e4265918be@relay.edennetwork.io
https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net
https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money

? Select execution client nethermind
? Select consensus client prysm
? Select validator client prysm
? Validator grace period. This is the number of epochs the validator will wait for security reasons before starting 2
? Graffiti to be used by the validator (press enter to skip it) neth-prysm
? Checkpoint sync URL https://beaconstate.ethstaker.cc
? Please enter the Fee Recipient address 0xEf8801eaf234ff82801821FFe2d78D60a0237F97
? Do you want to expose all ports? No
? Select JWT source create
2024-10-16 18:08:24 -- [INFO] Generating JWT secret for client authentication
2024-10-16 18:08:24 -- [INFO] JWT secret generated
? Do you want to enable the monitoring stack? No
2024-10-16 18:08:26 -- [INFO] Generating docker-compose script for current selection of clients
2024-10-16 18:08:26 -- [INFO] Generated docker-compose script for current selection of clients
2024-10-16 18:08:26 -- [INFO] Generating environment file for current selection of clients
2024-10-16 18:08:26 -- [INFO] Generated environment file for current selection of clients
2024-10-16 18:08:26 -- [INFO] Cleaning generated docker-compose and environment files
2024-10-16 18:08:26 -- [INFO] Cleaned generated files
? Select keystore source create
? Select mnemonic source create
? Select passphrase source random
? Withdrawal address 0xB26FCB9D0bf72F881dCfa9E4Eb3B23fB75Ae9A15
? Number of validators 20
? Existing validators. This number will be used as the initial index for the generated keystores. 3
2024-10-16 18:08:42 -- [INFO] Generating keystores...
2024-10-16 18:08:42 -- [INFO] Keystores generated successfully
2024-10-16 18:08:42 -- [INFO] Generating deposit data...
2024-10-16 18:08:43 -- [INFO] Deposit data generated successfully
2024-10-16 18:08:43 -- [INFO] Importing validator keys into the validator client...
2024-10-16 18:08:43 -- [INFO] Setting up containers
2024-10-16 18:08:43-- [INFO] Running command: docker compose -f /root/sedge-data/docker-compose.yml build validator
2024-10-16 18:08:43 -- [INFO] Running command: docker compose -f /root/sedge-data/docker-compose.yml pull validator
[+] Running 1/1
⠿ validator Pulled 0.5s
2024-10-16 18:08:44 -- [INFO] Running command: docker compose -f /root/sedge-data/docker-compose.yml create validator
[+] Running 2/0
⠿ Container sedge-validator-blocker Created 0.0s
⠿ Container sedge-validator-client Created 0.0s
2024-10-16 18:08:45 -- [INFO] Importing validator keys
2024-10-16 18:08:45 -- [INFO] The keys import container is starting
2024-10-16 18:08:46 -- [INFO] Validator keys imported successfully
? Interchange slashing protection file path slashing_protection.json
2024-10-16 18:09:12 -- [INFO] Importing slashing data to client prysm from /root/slashing_protection.json
2024-10-16 18:09:12 -- [INFO] The slashing protection container is starting...
2024-10-16 18:09:12 -- [INFO] The slashing container ends successfully.
? Run services now? No
2024-10-16 18:09:17 -- [INFO]
Your setup is ready. You can run it anytime using the 'sedge run --path /root/sedge-data' command. Feel free to explore the files and make changes, although Sedge is not accountable for any misbehavior or issue caused by any modification done to the setup. Stay tuned for more updates and features!

Happy Sedging!