> For the complete documentation index, see [llms.txt](https://docs.obol.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.obol.org/next/run-a-dv/integrations/lido-csm.md).

# Create a Lido CSM DV

This is a guide on taking part in Lido's [Community Staking Module](https://lido.fi/csm) (CSM) with a squad as part of a [Distributed Validator Cluster](/next/learn/readme/key-concepts.md#distributed-validator-cluster).

To start, this guide makes a couple assumptions:

1. You're running a Linux distribution and you've installed [Git](https://git-scm.com/downloads) and [Docker](https://docs.docker.com/engine/install/) (as a [non-root user](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)).
2. You will be deploying on Ethereum mainnet. Some screenshots in this guide are from a previous testnet; use Hoodi for testing. They are kept for demonstration purposes, so please verify you are using the correct [mainnet addresses](https://operatorportal.lido.fi/modules/community-staking-module#block-d8e94f551b2e47029a54e6cedea914a7).

## Getting started

This guide is broken down into 3 parts:

Part 1: Creating a shared [SAFE](https://safe.global/) wallet for the cluster, and a [Splits.org](https://splits.org) reward splitting contract

Part 2: Using the [Obol DV Launchpad](https://launchpad.obol.org/) + CLI to create the cluster

Part 3: Deploying the validator to Lido's CSM using their UI.

{% hint style="success" %}
In this guide we'll be using the CSM widget and expanding `Specify Custom Addresses` to set the `Manager Address` to the cluster multi-sig (SAFE) and the `Rewards Address` to the Splits.org splitting contract. Finally, we'll be selecting `Extended` permissions type which grants `Manager Address` ultimate control over the Node Operator.
{% endhint %}

## Part 1: Creating the Cluster SAFE + Splitter Contract

### Deploy the SAFE

Detailed instructions on how to create a SAFE Wallet can be found [here](https://help.safe.global/en/articles/40868-creating-a-safe-on-a-web-browser).

The squad leader should obtain signing addresses for all the cluster members, to create a new SAFE with the operators all as owners.

<figure><img src="/files/ahbpiDFVI5J5eTYw7Drp" alt="Screenshot: The squad leader should obtain signing addresses for all the cluster members, to create a new SAFE with the operators all as owners."><figcaption></figcaption></figure>

After giving the Safe a name and selecting the appropriate network, continue by clicking the **Next** button.

<figure><img src="/files/nSZniapy8iLLahp6darD" alt="Screenshot: After giving the Safe a name and selecting the appropriate network, continue by clicking the Next button."><figcaption></figcaption></figure>

Add all the signer addresses of the cluster members, select a threshold, and proceed to the final step by clicking the **Next** button.

{% hint style="info" %}
Don't require 100% of signers to approve transactions, in case someone loses access to their address. Using the same [threshold](/next/learn/readme/key-concepts.md#distributed-validator-threshold) as your cluster will use is a reasonable starting point.
{% endhint %}

<figure><img src="/files/3bv9zXVe2qzHyp5993rY" alt="Screenshot: Don&#x27;t require 100% of signers to approve transactions, in case someone loses access to their address. Using the same threshold as your cluster will use is a reasonable starting…"><figcaption></figcaption></figure>

Finally, submit the transaction to create the Safe by clicking on the **Create** button.

<figure><img src="/files/nyBxJVC9VcAf1N6LmjEG" alt="Screenshot: Finally, submit the transaction to create the Safe by clicking on the Create button."><figcaption></figcaption></figure>

### Deploy the Splitter Contract

The squad leader should obtain the reward addresses from all the cluster members (this can be the same address used in the SAFE contract). Open <https://app.splits.org> and create a `New contract`. Make sure to select the appropriate network.

<figure><img src="/files/dgkvcRJXo5NtCs7Oh5rW" alt="Screenshot: The squad leader should obtain the reward addresses from all the cluster members (this can be the same address used in the SAFE contract). Open https://app.splits.org and create a…"><figcaption></figcaption></figure>

Select `Split` for the contract type.

<figure><img src="/files/GyrQ8AukzKkwVdR3TYIx" alt="Screenshot: Select Split for the contract type."><figcaption></figcaption></figure>

Add the reward addresses of all cluster members. Choose whether the contract is immutable (recommended option), whether to sponsor the maintainers of [splits.org](https://splits.org), and optionally whether to set a distribution bounty such that third parties could pay the gas costs of distributing the accrued rewards in exchange for a small fee.

{% hint style="success" %}
If your cluster would like to contribute a portion of its rewards to Obol protocol development, thereby earning [Obol Incentives](https://obol.org/incentives) as part of Lido's [integration of CSM](https://research.lido.fi/t/integrate-csm-into-the-decentralized-validator-vault/8621) into the DV Vault, you must add [protocoldevelopmentfee.obol.eth](https://etherscan.io/address/0xDe5aE4De36c966747Ea7DF13BD9589642e2B1D0d) as a recipient of 0.1% of the splitter contract. This will contribute 0.1% of rewards **and your CSM bond** to Obol protocol development. Future versions of CSM integrations will enable contributing exactly 1% of accruing CSM rewards
{% endhint %}

<figure><img src="/files/aluRRDZyT46VyAuG3D7U" alt="Screenshot: If your cluster would like to contribute a portion of its rewards to Obol protocol development, thereby earning Obol Incentives as part of Lido&#x27;s integration of CSM into the DV…"><figcaption></figcaption></figure>

Finally, click the **Create Split** button, execute the transaction and share the created split contract with all cluster members for review.

## Part 2: Use the DV Launchpad + CLI to create the cluster keys

`Charon` is the middleware client that enables validators to be run by a group of independent node operators - a cluster or squad. A complete multi-container `Docker` setup including execution client, consensus client, validator client, MEV-Boost, the `Charon` client and monitoring tools can be found in [this repository](https://github.com/ObolNetwork/charon-distributed-validator-node).

### Step 1: Clone the repo

```sh
git clone https://github.com/ObolNetwork/charon-distributed-validator-node.git
```

### Step 2: Create ENR and Backup your Private Key

Enter the CDVN directory:

```sh
cd charon-distributed-validator-node
```

Use docker to create an ENR

```sh
docker run --rm -v "$(pwd):/opt/charon" obolnetwork/charon:v1.10.0 create enr
```

### Back up the private key located in `.charon/charon-enr-private-key`

<figure><img src="/files/e7A8v8tMcikioFwos9lI" alt="Screenshot: docker run --rm -v &#x22;$(pwd):/opt/charon&#x22; obolnetwork/charon:v1.10.0 create enr."><figcaption></figcaption></figure>

{% hint style="warning" %}
What you see in the console starting with `enr:-` is the **public key** for your Charon node (known as an ENR). The **private key** is in the file `.charon/charon-enr-private-key`, be sure to back it up securely.
{% endhint %}

### Step 3: Create the DV cluster configuration using the Launchpad

Obol has integrated the CSM details into the DV Launchpad. Choosing the "Lido CSM" withdrawal configuration allows you to create validator keys with Lido's required withdrawal and fee recipient addresses.

To start, the squad leader opens the [DV Launchpad](https://launchpad.obol.org), then connects their wallet and chooses **Create a cluster with a group**.

<figure><img src="/files/AESrVjsli30CFV4CL7I0" alt="Screenshot: To start, the squad leader opens the DV Launchpad, then connects their wallet and chooses Create a cluster with a group."><figcaption></figcaption></figure>

Then click **Get Started**.

<figure><img src="/files/ABXNX7WovH5Lu196e6Fj" alt="Screenshot: Then click Get Started."><figcaption></figcaption></figure>

Accept all the necessary advisories and sign to confirm.

<figure><img src="/files/ofp0Pxajs3b1X8P7d8ET" alt="Screenshot: Accept all the necessary advisories and sign to confirm."><figcaption></figcaption></figure>

Cluster configuration begins next. First, select the cluster name and size, then enter all cluster members signer addresses.

<figure><img src="/files/e3C35PpuqGeg9NHVVGz0" alt="Screenshot: Cluster configuration begins next. First, select the cluster name and size, then enter all cluster members signer addresses."><figcaption></figcaption></figure>

* Select the number of validators to create.
* (If the cluster creator is taking part in the cluster) Enter your Charon node's ENR which was generated during [step 2](#step-2-create-enr-and-backup-your-private-key) above.
* In the **Withdrawal Configuration** field, select `LIDO CSM`. This will automatically fill the required Withdrawal Address and Fee Recipient Addresss per [Lido's Documentation](https://operatorportal.lido.fi/modules/community-staking-module#block-d8e94f551b2e47029a54e6cedea914a7).
* Finally, click on the **Create Cluster Configuration** button.

<figure><img src="/files/hZL0IxcoHbgtEbCDxrAP" alt="Screenshot: Finally, click on the Create Cluster Configuration button."><figcaption></figcaption></figure>

Lastly, share the cluster invite link with the other cluster members.

<figure><img src="/files/75SvEHn91vKHVg18z7r6" alt="Screenshot: Lastly, share the cluster invite link with the other cluster members."><figcaption></figcaption></figure>

### Step 4: Distributed Key Generation (DKG)

All squad members need to open the cluster invitation link, connect their wallet, accept all necessary advisories, and to verify the cluster configuration is correct with a signature. Each squad member will also need to upload and sign an ENR to represent their charon client, so see [steps 1](#step-1-clone-the-repo) and [2](#step-2-create-enr-and-backup-your-private-key) above.

<figure><img src="/files/BdIhANUpTmRCqxbJA0Ef" alt="Screenshot: All squad members need to open the cluster invitation link, connect their wallet, accept all necessary advisories, and to verify the cluster configuration is correct with a…"><figcaption></figcaption></figure>

Once all members confirm the configuration they will see the **Continue** button.

<figure><img src="/files/FO5wmW1KyGF2EqenXTpG" alt="Screenshot: Once all members confirm the configuration they will see the Continue button."><figcaption></figcaption></figure>

On the next page, they will find a CLI command which is used to begin the Distributed Key Generation (DKG) ceremony. All members need to synchronously complete this step.

<figure><img src="/files/uzdeiNyarjXsBCQszHt4" alt="Screenshot: On the next page, they will find a CLI command which is used to begin the Distributed Key Generation (DKG) ceremony. All members need to synchronously complete this step."><figcaption></figcaption></figure>

{% hint style="success" %}
Go back to the terminal and make sure you're in the `charon-distributed-validator-node` directory before running the DKG command:

```sh
pwd
```

If you are not, navigate to it using the `cd` command.
{% endhint %}

Paste the DKG command into your terminal and wait for all the other squad members to connect and complete the DKG ceremony.

<figure><img src="/files/6N1GKFpX4NenXc3v6XmS" alt="Screenshot: Paste the DKG command into your terminal and wait for all the other squad members to connect and complete the DKG ceremony."><figcaption></figcaption></figure>

New files were generated: `cluster-lock.json`, `deposit-data.json`, `validator_keys` are all found in the `.charon` folder (hidden by default). This contains each operator's partial key signatures for the validators.

{% hint style="danger" %}
At this point, **each operator must make a backup of the `.charon` folder and keep it safe, as validator keys cannot be recreated if lost**.
{% endhint %}

### Step 5: Create a `.env` file for Mainnet

Copy and rename the `.env.sample.mainnet` file to `.env`

```sh
cp .env.sample.mainnet .env
```

Open the `.env` file using your favorite editor:

```sh
nano .env
```

Uncomment and set `BUILDER_API_ENABLED=true`.

Uncomment `MEVBOOST_RELAYS=` and set it to the URL of at least one of Lido's approved MEV relays [here](https://enchanted-direction-844.notion.site/6d369eb33f664487800b0dedfe32171e?v=8e5d1f1276b0493caea8a2aa1517ed65). Multiple relays must be separated by a comma. Consult our [deployment best practices](/next/run-a-dv/prepare/deployment-best-practices.md#mev-boost-relays) for further info on MEV relay selection.

### Step 6: Starting the Node

Each cluster member should start the node with the following command:

```sh
docker compose up -d
```

At this point, execution and consensus clients should start syncing. Charon and the validator client should start waiting for the consensus client to be synced and the validator to be activated.

## Part 3: Upload the public keys and deposit to Lido CSM

CSM V3 introduces a new operator type, **Identified DVT Cluster (IDVTC)**, that is purpose-built for distributed validator clusters. An IDVTC cluster must have exactly four operators (no more, no less), and every operator must already hold the [Identified Community Staker (ICS)](https://blog.lido.fi/unlock-exclusive-benefits-as-an-identified-community-staker/) operator type. See [Lido's IDVTC description page](https://csm.lido.fi/type/idvtc-description) for full eligibility and rules.

Choose the tab below that matches how your cluster will deposit. Both flows continue with the shared [Create the Node Operator](#create-the-node-operator) section once any pre-deposit steps are complete.

{% tabs %}
{% tab title="ICS" %}
A single squad member who holds ICS should be the one to create the node through the CSM widget. Doing so ensures the cluster's validators receive [ICS benefits](https://blog.lido.fi/unlock-exclusive-benefits-as-an-identified-community-staker/).

There are no additional pre-deposit steps for ICS clusters. Proceed to [Create the Node Operator](#create-the-node-operator) below.
{% endtab %}

{% tab title="IDVTC" %}
Before depositing, your cluster must be approved as an Identified DVT Cluster. The squad leader submits a single application on behalf of all four operators.

{% hint style="info" %}
The squad leader connects to the Lido CSM UI using the **SAFE multisig** wallet (created in [Part 1](#deploy-the-safe)) via WalletConnect. WalletConnect sessions can drop if the initiator disconnects, so **keep the browser tab and WalletConnect session open** while you collect the threshold of SAFE signatures needed to connect.
{% endhint %}

### Step 1: Open the IDVTC Application Form

The squad leader navigates to [csm.lido.fi](https://csm.lido.fi/), connects the SAFE multisig via WalletConnect, then in the left sidebar clicks **Operator Type** followed by **Apply for IDVTC**. You can also navigate directly to [csm.lido.fi/type/idvtc-apply](https://csm.lido.fi/type/idvtc-apply).

<figure><img src="/files/aCENXN0Mp5TW7HNquoUj" alt="Screenshot: The Apply for Identified DVT Cluster form in the Lido CSM UI, showing the verified Main address and the Discord and Telegram social verification sections."><figcaption></figcaption></figure>

The **Main address** shown on the form will be the connected SAFE multisig.

### Step 2: Prove Discord Ownership

1. In the **Discord** section, click **Copy** to copy the generated proof message.
2. Post the message in the [Lido CSM Discord channel](https://discord.gg/lido). The application form links directly to the correct channel.
3. Copy the link to your posted message and paste it into the **Discord message link** field.

Optionally, add a Telegram username in the **Telegram** field for follow-up communication from the Lido team.

### Step 3: Verify the Four Cluster Member Addresses

This section requires coordination with your three teammates. Each cluster member must prove ownership of their ICS-verified Ethereum address by signing a message on Etherscan.

<figure><img src="/files/S4jzpekjdmmBg2oaf0J5" alt="Screenshot: The Cluster member addresses section of the IDVTC application form, showing the address input, generated message to sign, and signature verification field for each of the four cluster members."><figcaption></figcaption></figure>

Starting with **Cluster member #1** (typically the squad leader), and then for each remaining member:

1. Enter the member's ICS-verified Ethereum address into the **Cluster member #N** field. The form generates a unique **Message to sign** for that address.
2. Click **Sign** next to the message. This opens Etherscan's [Verified Signatures](https://etherscan.io/verifiedsignatures) tool in a new tab.
3. The member whose address is being verified connects their wallet to Etherscan, pastes the generated message into the **Message** field, clicks **Sign Message**, and then **Publish**.
4. Etherscan returns a signature. Paste the signature into the **Signature** field in the application form and click **Verify**.
5. When the signature is valid, the member's status flips from **Unverified** to **Verified**.

Repeat for cluster members #2, #3, and #4.

{% hint style="info" %}
The squad leader does not need to be physically co-located with the other members. Send each teammate the generated message and the Etherscan signing link, then collect the resulting signature from them to paste into the form on their behalf.
{% endhint %}

### Step 4: Submit the Application

Once all four cluster members show as **Verified**, tick the confirmation checkbox at the bottom of the form, then click **Submit application**.

<figure><img src="/files/FC58DthoPsfy95R18HQJ" alt="Screenshot: The bottom of the IDVTC application form showing Cluster member #4 verification, the I confirm that checkbox listing eligibility and monitoring criteria, and the Submit application button."><figcaption></figcaption></figure>

{% hint style="warning" %}
At time of writing, the Lido IDVTC application review and approval flow has not yet been finalized publicly. Once Lido publishes the post-submission process (including how applicants are notified of approval and how to proceed with depositing as an IDVTC), this section will be updated.
{% endhint %}

Once your IDVTC application is approved, proceed to [Create the Node Operator](#create-the-node-operator) below.
{% endtab %}
{% endtabs %}

### Create the Node Operator

An ICS member of the cluster heads to [csm.lido.fi](https://csm.lido.fi/) and connects their wallet.

<figure><img src="/files/PXpGxgT3J5HZk24Oh0SQ" alt="Screenshot: An ICS member heads to csm.lido.fi and connects their wallet."><figcaption></figcaption></figure>

Click the **Create Node Operator** button.

<figure><img src="/files/HHXj5hRXgCbNPxxEqz6T" alt="Screenshot: The ICS member clicks on the Create Node Operator button."><figcaption></figcaption></figure>

* Paste the contents of the `deposit-data.json` file into the **Upload deposit data** field. The member submitting the transaction should have enough ETH/stETH/wstETH to cover the bond.
* Expand the **Specify custom addresses** section.
  * Set the **Reward Address** field to the `Split` contract address and the **Manager Address** field to the `Safe` wallet address. (These were created previously in [part 1](#part-1-creating-the-cluster-safe--splitter-contract))
  * Verify that the **Extended** box is outlined. This ensures that the `Safe` address has the ability to change the reward address if necessary.
* Check that the correct addresses are set and click the **Create Node Operator** button.

  <figure><img src="/files/ssAziDi1ERrF60GJ5wBx" alt="Screenshot: Check that the correct addresses are set and click the Create Node Operator button."><figcaption></figcaption></figure>

Sign the transaction. The cluster is ready for deposit from Lido CSM. At this point, your job is finished.

{% hint style="warning" %}
When claiming your cluster's rewards, **be sure to claim in wstETH**. Claiming native ETH will result in loss of funds. Rebasing tokens like stETH may not receive the incremental yield you’re expecting. More information can be found in the [splits.org documentation](https://docs.splits.org/core/split#how-it-works).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.obol.org/next/run-a-dv/integrations/lido-csm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
