This repository contains a Solidity smart contract that enables batch deposits to the official Ethereum 2.0 Deposit Contract in a single transaction.
Normally, each validator deposit to the ETH2 Deposit Contract must be made in a separate transaction — resulting in high gas costs when onboarding multiple validators. This contract provides a batch deposit mechanism, allowing users to submit multiple deposits efficiently in one call while maintaining full compliance with the official ETH2 deposit specifications.
- Batch deposits in a single transaction
- Compatible with the official ETH2 Deposit Contract
- Reduced gas overhead per validator
- On-chain validation and forwarding of deposit data
- Support for custom withdrawal credentials and deposit authorities
To run all the tests in the project, execute the following command:
npx hardhat testYou can also selectively run the Solidity or node:test tests:
npx hardhat test solidity
npx hardhat test nodejsBSD-3-Clause-1 © 2025 — Everstake