Skip to main content

Staking with Lido using Sedge

What is the Lido Community Staking Module (CSM)?

The Lido Community Staking Module (CSM) is a protocol that allows anyone, especially community stakers and solo stakers, to become a Lido Node Operator in a permissionless manner by providing an ETH-based bond as security collateral. CSM offers various benefits, such as smoothed rewards with other Lido modules received via stETH, reasonable low bond requirements (accepted in ETH, stETH, wstETH), and a user-friendly experience.

Sedge supports the Lido CSM, allowing users to generate validator keys and set up their full nodes with ease. This guide will walk you through the process of staking with Lido CSM using Sedge.

If you are interested in becoming a Lido node operator, make sure to read the Node Operator Expectations

info

Lido CSM is currently live and permissionless on the Holesky testnet. The Mainnet launch is expected soon. You can check your eligibility for the Early Adoption program on Mainnet here.

Workflow breakdown

The Lido CSM staking process involves several steps:

  1. Generate Validator Keys and Deposit Data: Generate validator keys compatible with Lido CSM with withdrawal credentials set to Lido Withdrawal Vault.
  2. Set Up Your Full Node: Set up your full node with Lido CSM settings enabled (Fee recipient pointing to Lido Execution Layer Rewards Vault, and using designated MEV relays for Lido CSM) and the designed validator keys.
  3. Upload Deposit Data: Upload the deposit data to the Lido CSM Widget and provide the required bond amount in ETH, stETH, or wstETH.
  4. Wait for Deposit Confirmation: Wait for your CSM validator keys to be deposited through the protocol and ensure your node remains online in the meantime.

Sedge simplifies the process of staking with Lido CSM by providing a seamless workflow for:

  • Generating validator keys with the respective deposit data (Step 1)
  • Setting up your full node with Lido CSM settings enabled (Step 2)
  • Importing existing Lido CSM validator keys to your Sedge node (In case you already have validator keys generated and running but want to migrate your clients or to Sedge)

This means you only have to upload the deposit data to Lido CSM and purchase the bond manually. Sedge will take care of the rest.

Let's dive into each step in detail.

Using Sedge for Lido CSM

You can run sedge cli to kickstart Sedge's one-click interactive setup. In this step, you will be guided through generating validator keys and setting up your full node with Lido CSM settings enabled.

Alternatively, for a more controlled setup, you can use the following commands to generate validator keys and set up your full node with Lido CSM settings enabled.

Generating Validator Keys with the respective deposit data

To get started with CSM using Sedge, you first need to generate your validator keys and deposit data. Sedge simplifies this process with the sedge keys command. Use the --lido flag to generate keys compatible with Lido CSM:

sedge keys --lido --network holesky

Setting up your full node with Lido CSM settings enabled

Once the keys are generated, you can set up your full node:

sedge generate full-node --lido --network holesky
note

This command will generate a setup with the Lido CSM enabled for the Holesky testnet. If supported, you can set other networks by changing the --network flag.

This command will generate a new set of validator keys with the following parameters:

  • withdrawal_address set to the Lido Withdrawal Vault address
  • chain set to the appropriate network (e.g., holesky, mainnet)
  • fee_recipient set to the Lido Execution Layer Rewards Vault address
  • mev_relay set to the designated MEV relays for Lido CSM on the appropriate network

You can now proceed to run the generated setup for your full node with the Lido CSM settings enabled and the validator keys you want to run with sedge run (although not filled and registered yet).

Uploading deposit data and registering the Node Operator

After generating your validator keys and setting up your node, you need to register your wallet as a Node Operator to work with Lido CSM:

  1. Upload the newly generated deposit data file pertaining to your CSM keystores onto the Lido CSM Widget and provide the required bond amount in ETH, stETH, or wstETH. Before uploading, ensure that your nodes are synced, running and ready for validator activation.
info

The official [instructions guide] (https://dvt-homestaker.stakesaurus.com/bonded-validators-setup/lido-csm/upload-remove-view-validator-keys#upload-keys) provides detailed instructions on how to upload the deposit data and register your Node Operator.

  1. Wait for your CSM validator keys to be deposited through the protocol and ensure your node remains online in the meantime.

Managing Your Node Operator

Once your validator keys are deposited and your node is running, you can manage your Node Operator using Sedge commands and the Lido CSM Widget.

Checking Node Operator Status

To view detailed data about your Node Operator, use the sedge lido-status command. This command displays information specific to the Node Operator based on the provided rewards address.

sedge lido-status <your_reward_address>
info

rewardAddress is the ultimate recipient of the rewards. It can perform the following actions regarding the CSM Node Operator:

  • Claim rewards
  • Propose a new rewardAddress
  • Reset managerAddress to make it equal to the current rewardAddress

The [Lido Documentation] (https://docs.lido.fi/staking-modules/csm/guides/addresses#reward-address) provides detailed information about the rewardAddress.

Description

This command helps you monitor your Node Operator's performance by displaying:

  • Node Operator ID
  • Queue information (e.g., available for deposit, stuck, refunded, exited, deposited)
  • Bond and rewards details

Additional Management Tasks

Using the Lido CSM Widget, it allows you to:

  • Claim bond and rewards
  • Add extra bond amount
  • Propose new Rewards and Manager addresses
  • Add or remove validator keys

Remember to keep your node running smoothly and follow the Lido protocol rules to avoid any penalties or bond confiscation.

For more detailed information on managing your Node Operator, refer to the Lido CSM documentation.