> For the complete documentation index, see [llms.txt](https://dvt-homestaker.stakesaurus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dvt-homestaker.stakesaurus.com/staking-vaults/lido-v3-stvaults-wip.md).

# Lido v3 stVaults (WIP)

## Installing Dependencies

Remove the incorrect `yarn` package

```
sudo apt remove -y nodejs
```

Install the correct `yarn` package.

```
nvm install 22
nvm use 22
nvm alias default 22
node --version
```

Enable Corepack under `Node 22` and activate `yarn`.

```
corepack enable
corepack prepare yarn@stable --activate
hash -r
which yarn
yarn --version
```

**Expected:** `which yarn` should point to a Corepack-managed path and `yarn --version` should return a normal Yarn version (e.g., `1.22.x` or `3.x/4.x`), not error.

Reload your shell startup file.

```
source ~/.bashrc
```

Install other dependencies for running stVaults.

```
cd ~/lido-staking-vault-cli
yarn install
```

## Configure Environment Variables

Create a `.env` file under the `lido-staking-vault-cli` folder.

```
nano .env
```

Use this template and fill in your actual environment variables.

```
# Network Configuration (Required)
CHAIN_ID=560048
CL_URL=https://your-consensus-layer-endpoint
EL_URL=https://your-execution-layer-endpoint

# Contract Deployment Configuration (Required)
DEPLOYED=deployed-hoodi-vaults.json

# Wallet Configuration (Choose one method)
# use private key
PRIVATE_KEY=0x1234567890abcdef...

# OR use encrypted account file
ACCOUNT_FILE=wallets/account.json
ACCOUNT_FILE_PASSWORD=your_secure_password

# OR use WalletConnect
# WALLET_CONNECT_PROJECT_ID is NOT a secret. It is a public identifier
# of the application that uses WalletConnect.
WALLET_CONNECT_PROJECT_ID=ee928c025792b10a6daa97d85328c433
```

## Run the DeFi Wrapper Webapp

Clone the DeFi Wrapper Github repository and enter it's directory.

```
git clone https://github.com/lidofinance/defi-wrapper-widget.git
cd defi-wrapper-widget
```

Verify that you are using Node 22

```
node --version
# should be v22.x.x (or higher)
corepack enable
yarn --version
```

If not Node is not at least version 22 or higher,

```
nvm install 22
nvm use 22
corepack enable
```

Install dependencies

```
yarn install
```

Create `.env` from `.env.example` and fill it up

```
cp .env.example .env
nano .env
```

Run a preview of your webapp

```
yarn build:preview
```
