A command-line interface (CLI) tool for managing Lido staking vaults. Simplify your staking operations with intuitive commands and streamlined workflows.
For changes between versions see Changelog
- Easy Setup: Quick installation and configuration to get you started.
- Vault Management: Create and manage staking vaults with simple commands.
- Monitoring: Track vault metrics.
- Node.js: Ensure you have Node.js (v20 or later) installed.
- npm: Node Package Manager is required to install dependencies.
git clone [email protected]:lidofinance/lido-staking-vault-cli.git
cd lido-staking-vault-cliThe repository has two primary branches:
main(Recommended): Stable releases with tested and verified features. Ideal for production use and reliable operations.develop: Active development branch with the latest features. Use this if you want immediate access to new functionality and can handle potentially unstable features.
# Switch to stable branch (recommended)
git checkout main
# Or switch to development branch for latest features
git checkout developBefore using the CLI, configure your environment variables. You can set them in a .env file in your project root.
CHAIN_ID=560048 // required
CL_URL=url
EL_URL=url
# Contract addresses
DEPLOYED=deployed-hoodi-vaults.json // required
# Wallet
PRIVATE_KEY=0x
# or encrypted file
# ACCOUNT_FILE=wallets/account.json
# ACCOUNT_FILE_PASSWORD=1234
# WalletConnect (optional)
# Note: WALLET_CONNECT_PROJECT_ID is NOT a secret. It is a public identifier
# of the application using WalletConnect.
WALLET_CONNECT_PROJECT_ID=ee928c025792b10a6daa97d85328c433If you plan to manage contracts, the privateKey is a required property for this type of operations. For using elLink in the right way, be attentive to match the RPC resolver link and its chain ID.
After installation and configuration, you can start using the CLI to manage your staking vaults.
yarn start [command] [options]yarn start -hVaultHub constants
yarn start vo r infoCount of all vaults
yarn start contracts hub r v-countRun unit tests for utilities and helpers:
yarn testIntegration tests run on a forked chain to test real contract interactions.
-
Install dependencies (includes Anvil via
@viem/anvil):yarn install
-
Create test configuration:
cp env.test.example .env.test # Edit .env.test and set your RPC_URL
Anvil starts automatically when you run tests:
# All integration tests (Anvil starts automatically)
yarn test:integration
# Watch mode
yarn test:integration:watchFor detailed information, see tests/integration/README.md.
For additional information about available methods and functionality, refer to the documentation for the Lido Staking Vault CLI.
This project is licensed under the MIT License.