The gas parameter of eth_call and eth_estimateGas is limited to 25000000 Gwei for Ethereum shared nodes.
The gas parameter limitation on Ethereum dedicated nodes can be customized on request.
The following two functions are executed locally on an Ethereum node and require no actual gas:
- eth_call — executes a new message call and returns the value of the executed call.
- eth_estimateGas — returns an estimate of how much gas is necessary to allow the transaction to complete.
The purpose of eth_call and eth_estimateGas is to allow for the pre-production contract testing of real applications, various blockchain analytics, and so on.
Because these two functions are executed locally on a node, create no transaction on the blockchain, and require no gas, they are easy targets to create a denial of Ethereum node service at the RPC level.
To prevent the attack on a node through an RPC endpoint, the Ethereum nodes at Chainstack are deployed with the default rpc.gascap option set to 25000000 (or 0.025 ether).
If you have a dedicated node, you can customize or remove the gas limitation by contacting us.