What is Lido?
Lido is the leading liquid staking protocol, allowing users to stake their ETH and receive stETH tokens while maintaining liquidity. The Lido API provides programmatic access to staking operations.
Key Features
- Liquid staking - receive stETH immediately
- No minimum stake requirement
- Distributed validators for decentralization
- Built-in oracle integration
- DeFi integration with stETH
API Integration
// Get stETH balance
const stETH = await contract.balanceOf(userAddress);
// Submit stake
const tx = await contract.submit({ value: web3.utils.toWei('1') });
// Get stETH by ETH
const stETHAmount = await contract.getSharesByPooledEth(ethAmount);