Batch Deposits Contracts

We have developed smart contracts to enable batch deposits. They offer the ability to fund multiple validators by signing one transaction, an important integration UX improvement, saving signing time and gas.

  • A contract for 0x01 validators, deployed in July 2023. Deployed on Hoodi and Mainnet. Audit report here
  • A contract for 0x02 validators (compatible with 0x01), deployed in October 2025. Deployed on Hoodi and Mainnet. Audit report to be uploaded soon.

Setting your own gas limit

Setting the gas limit for a transaction is considered an advanced feature, and libraries such as Ethers normally do a great job of estimating the right gas limit to use for any transaction. However, ethers and other libraries sometimes use too low of a gas limit for ETH staking transactions. Using too low of a gas limit may result in wasted gas on several transaction attempts due to your transactions running out of gas, so use this guide to prevent transaction issues.

Modifying the gas limit

Funding a large number of validators is likely to require a lot of gas, in which case you should use the table below for reference when building the staking transaction yourself (i.e. not from our API).

📘

Gas cost = gas price * gas usage

# of ValidatorsSuggested Gas LimitEstimated Cost in Gwei (assuming gas price of 25 gwei and 100% gas usage)
1123,1423,078,550
10431,54310,788,575
501,893,65747,341,425
1003,700,26092,506,500
1505,534,921138,373,025
2007,367,352184,183,800
2509,164,722229,118,050

An alternative to referencing this table is using a gas multiplier. Ethers has a method for estimating gas here. Implementing a gas multiplier can be as simple as:

const estimatedGas = await contract.estimateGas.method(args);
const tx = await contract.method(args, { gasLimit: 1.2 * estimatedGas });

Important notes

  1. A higher gas limit may mean the transaction will take longer to execute, but ultimately will prevent having to waste extra gas in multiple transaction attempts if the gas limit is set too low.
  2. Setting a high gas limit does not mean higher fees, it just means less likelihood of an out of gas reversion! Any unused gas in a transaction will be returned to the sender's address.

References

What is Gas?

Ethers Docs

Ethereum Gas Tracker