Skip to main content

What Is the Relative Gas Cost of a ‘Delegatecall’ Compared to a Regular ‘Call’?

A 'delegatecall' generally has a higher base gas cost than a simple 'call'. This is due to the additional complexity of setting up the execution context, which involves copying the code and running it within the caller's storage environment.

However, the exact difference can vary based on the EVM version and the complexity of the delegated function.

What Is the Difference between ‘Call’ and ‘Delegatecall’?
Explain the Difference between “Gas” and “Gas Limit” in a Transaction
Compare the Capital Cost of a PoS Attack to the Energy Cost of a PoW Attack
How Does the ‘Delegatecall’ Opcode Enable the Proxy Pattern?