Track your Lido Community Staking Module (CSM) validator earnings, excess bond, and cumulative rewards.
- Look up operator by Ethereum address (manager or rewards address) or operator ID
- View current bond vs required bond (excess is claimable)
- Track cumulative rewards and unclaimed amounts
- Operator type detection (Permissionless, ICS/Legacy EA, etc.)
- Detailed validator status from beacon chain (with
--detailedflag) - APY metrics: reward APY, bond APY (stETH rebase), and net APY
- Full distribution history with per-frame breakdown (with
--historyflag) - Withdrawal/claim history tracking (with
--withdrawalsflag) - JSON output for scripting and automation
- CLI for quick terminal lookups
- Web interface for browser-based monitoring
# Clone the repository
git clone <repo-url>
cd lido-csm-dashboard
# Copy and configure environment
cp .env.example .env
# Start the web dashboard
docker compose up -d
# View logs
docker compose logs -fThe web dashboard will be available at http://localhost:3000
# Clone the repository
git clone <repo-url>
cd lido-csm-dashboard
# Install with pip
pip install -e .
# Or with uv
uv pip install -e .Copy .env.example to .env and configure:
cp .env.example .envAvailable settings:
ETH_RPC_URL: Ethereum RPC endpoint (default: https://eth.llamarpc.com)BEACON_API_URL: Beacon chain API (default: https://beaconcha.in/api/v1)BEACON_API_KEY: Optional API key for beaconcha.in (higher rate limits)ETHERSCAN_API_KEY: Optional API key for Etherscan (recommended for accurate historical data)THEGRAPH_API_KEY: Optional API key for The Graph (enables historical Bond APY per distribution frame)CACHE_TTL_SECONDS: Cache duration in seconds (default: 300)
The web dashboard runs automatically when you start the container. You can also use CLI commands inside the container:
# Check operator rewards
docker compose exec csm-dashboard csm rewards 0xYourAddress
# Check by operator ID
docker compose exec csm-dashboard csm rewards --id 42
# Get detailed info with APY metrics
docker compose exec csm-dashboard csm rewards --id 42 --detailed
# JSON output
docker compose exec csm-dashboard csm rewards --id 42 --json
# List all operators
docker compose exec csm-dashboard csm list
# Monitor continuously (refresh every 60 seconds)
docker compose exec csm-dashboard csm watch 0xYourAddress --interval 60csm rewards [ADDRESS] [OPTIONS]Note: The
checkcommand is still available as an alias for backwards compatibility.
| Argument/Option | Short | Description |
|---|---|---|
ADDRESS |
Ethereum address (required unless --id is provided) |
|
--id |
-i |
Operator ID (skips address lookup, faster) |
--detailed |
-d |
Include validator status from beacon chain and APY metrics |
--history |
-H |
Show all historical distribution frames with per-frame APY |
--withdrawals |
-w |
Include withdrawal/claim history |
--json |
-j |
Output as JSON (same format as API) |
--rpc |
-r |
Custom RPC URL |
Examples:
# Check by address
csm rewards 0xYourAddress
# Check by operator ID (faster)
csm rewards --id 42
# Get detailed validator info and APY
csm rewards --id 42 --detailed
# Show full distribution history with Previous/Current/Lifetime columns
csm rewards --id 42 --history
# Include withdrawal history
csm rewards --id 42 --withdrawals
# JSON output for scripting
csm rewards --id 42 --json
# JSON with detailed info
csm rewards --id 42 --detailed --jsoncsm watch ADDRESS [OPTIONS]| Argument/Option | Short | Description |
|---|---|---|
ADDRESS |
Ethereum address to monitor (required) | |
--interval |
-i |
Refresh interval in seconds (default: 300) |
--rpc |
-r |
Custom RPC URL |
Examples:
# Monitor with default 5-minute refresh
csm watch 0xYourAddress
# Monitor with 60-second refresh
csm watch 0xYourAddress --interval 60csm list [OPTIONS]| Option | Short | Description |
|---|---|---|
--rpc |
-r |
Custom RPC URL |
Lists all operator IDs that have rewards in the current merkle tree.
csm serve [OPTIONS]| Option | Description |
|---|---|
--host |
Host to bind to (default: 127.0.0.1) |
--port |
Port to bind to (default: 8080) |
--reload |
Enable auto-reload for development |
Examples:
# Start on default port
csm serve
# Start on custom port
csm serve --port 3000
# Development mode with auto-reload
csm serve --reloadThen open http://localhost:8080 in your browser.
Docker: The web dashboard is already running when you use docker compose up. Access it at http://localhost:3000
The --json flag outputs data in the same format as the API, making it easy to integrate with scripts or other tools:
csm rewards --id 333 --json{
"operator_id": 333,
"manager_address": "0x6ac683C503CF210CCF88193ec7ebDe2c993f63a4",
"reward_address": "0x55915Cf2115c4D6e9085e94c8dAD710cabefef31",
"curve_id": 2,
"operator_type": "Permissionless",
"rewards": {
"current_bond_eth": 651.55,
"required_bond_eth": 650.2,
"excess_bond_eth": 1.35,
"cumulative_rewards_eth": 10.96,
"distributed_eth": 9.61,
"unclaimed_eth": 1.35,
"total_claimable_eth": 2.70
},
"validators": {
"total": 500,
"active": 500,
"exited": 0
}
}With --detailed, additional fields are included:
{
"operator_id": 333,
"curve_id": 2,
"operator_type": "Permissionless",
"validators": {
"total": 500,
"active": 500,
"exited": 0,
"by_status": {
"active": 500,
"pending": 0,
"exiting": 0,
"exited": 0,
"slashed": 0
}
},
"performance": {
"avg_effectiveness": 98.5
},
"apy": {
"current_distribution_apy": 2.77,
"current_bond_apr": 2.56,
"net_apy_28d": 5.33,
"lifetime_reward_apy": 2.80,
"lifetime_bond_apy": 2.60,
"lifetime_net_apy": 5.40
},
"active_since": "2025-02-16T12:00:00"
}With --history, you also get the full distribution frame history:
{
"apy": {
"frames": [
{
"frame_number": 1,
"start_date": "2025-03-14T00:00:00",
"end_date": "2025-04-11T00:00:00",
"rewards_eth": 1.2345,
"validator_count": 500,
"duration_days": 28.0,
"apy": 2.85
}
]
}
}GET /api/operator/{address_or_id}- Get operator rewards data- Query param:
?detailed=truefor validator status and APY - Query param:
?history=truefor all historical distribution frames - Query param:
?withdrawals=truefor withdrawal/claim history
- Query param:
GET /api/operator/{address_or_id}/strikes- Get detailed validator strikesGET /api/operators- List all operators with rewardsGET /api/health- Health check
The dashboard shows three APY metrics when using the --detailed or --history flags:
| Metric | What It Means |
|---|---|
| Reward APY | Your earnings from CSM fee distributions, based on your validators' performance |
| Bond APY | Automatic growth of your stETH bond from protocol rebasing (same for all operators) |
| NET APY | Total return = Reward APY + Bond APY |
--detailed: Shows only the Current frame column (simpler view)--history: Shows Previous, Current, and Lifetime columns with full distribution history
Reward APY is calculated from actual reward distribution data published by Lido. Every ~28 days, Lido calculates how much each operator earned and publishes a "distribution frame" to IPFS (a decentralized file storage network). The dashboard fetches all these historical frames to calculate APY.
- Current APY: Based on the most recent distribution frame (~28 days)
- Previous APY: Based on the second-to-last distribution frame
- Lifetime APY: Duration-weighted average of all frames, using per-frame bond requirements for accuracy
The Lifetime APY calculation is particularly sophisticated: it uses each frame's actual validator count to determine the bond requirement for that period, then calculates a duration-weighted average. This produces accurate lifetime APY even for operators who have grown significantly over time.
Bond APY represents the stETH rebase rate—the automatic growth of your bond due to Ethereum staking rewards. This rate is set by the Lido protocol and applies equally to all operators.
Note: With a Graph API key configured (
THEGRAPH_API_KEY), Bond APY shows the actual historical stETH rate for each distribution frame. Without the API key, it falls back to the current rate (marked with an asterisk).
The dashboard detects your operator type from the CSAccounting bond curve:
| Type | Description |
|---|---|
| Permissionless | Standard operators (Curve 2, current default) |
| Permissionless (Legacy) | Early permissionless operators (Curve 0, deprecated) |
| ICS/Legacy EA | Incentivized Community Stakers / Early Adopters (Curve 1) |
The actual reward data lives on IPFS and is always accessible. However, to discover which IPFS files exist, the dashboard needs to find historical DistributionLogUpdated events on the blockchain. This can be done in several ways:
| Method | Description |
|---|---|
| With Etherscan API key | Most reliable. Queries Etherscan directly for complete, up-to-date distribution history. |
| Without API key | Uses a built-in list of known distributions. Works fine but may be slightly behind if new distributions happened recently. |
How to get one (free):
- Go to etherscan.io/apis
- Create a free account
- Generate an API key
- Add to your
.envfile:ETHERSCAN_API_KEY=your_key_here
The free tier allows 5 calls/second, which is plenty for this dashboard.
The Graph provides historical stETH APR data from the Lido subgraph. Without this API key, Bond APY calculations use the current rate for all periods, which is less accurate.
How to get one (free):
- Go to thegraph.com/studio
- Connect your wallet and create an account
- Go to "API Keys" and create a new key
- Add to your
.envfile:THEGRAPH_API_KEY=your_key_here
The free tier includes 100,000 queries/month, which is plenty for this dashboard.
- On-chain contracts: CSModule, CSAccounting, CSFeeDistributor, stETH
- Rewards tree: https://github.com/lidofinance/csm-rewards (updates hourly)
- Beacon chain: beaconcha.in API (for validator status)
- Lido API: stETH APR data (for bond APY calculations)
- IPFS: Historical reward distribution logs (cached locally after first fetch)
- CSModule:
0xdA7dE2ECdDfccC6c3AF10108Db212ACBBf9EA83F - CSAccounting:
0x4d72BFF1BeaC69925F8Bd12526a39BAAb069e5Da - CSFeeDistributor:
0xD99CC66fEC647E68294C6477B40fC7E0F6F618D0 - stETH:
0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytestMIT

