Technical definition
EIP-2930, titled 'Optional access lists,' defines a new transaction type (type 1) for Ethereum that includes an optional 'accessList' field. This list specifies addresses and storage keys that a transaction intends to interact with before execution. By declaring these in advance, the Ethereum Virtual Machine (EVM) can optimize gas usage by pre-loading the necessary state into memory, reducing redundant disk reads during execution. This improves efficiency, particularly for complex transactions involving multiple contract calls or storage accesses.
An analogy
Imagine planning a road trip where you pre-load a GPS with all the addresses you plan to visit. Instead of stopping at each location to check the route, the GPS already knows the path, saving time and fuel. Similarly, EIP-2930 pre-declares the addresses and data a transaction will access, allowing the Ethereum network to process it more efficiently.
Why it matters
EIP-2930 reduces gas costs and improves transaction speed by minimizing redundant computations. It is particularly useful for complex transactions, such as those involving DeFi protocols or NFT interactions, where multiple storage accesses are required.
Where it came from
EIP-2930 was proposed by Ethereum co-founder Vitalik Buterin in 2020 and was included in the Berlin hard fork (EIP-2070) in April 2021. It was designed to address inefficiencies in Ethereum's transaction processing while maintaining backward compatibility.
Example in practice
A user interacts with a decentralized exchange (DEX) to swap tokens. The transaction involves multiple contract calls and storage accesses. By including an access list in the transaction, the DEX swap can be executed with lower gas fees and faster confirmation times, as the EVM pre-loads the necessary state.
Common misconceptions
- EIP-2930 eliminates gas fees entirely → Correction: EIP-2930 reduces gas fees by optimizing transaction execution but does not eliminate them.
- EIP-2930 is mandatory for all transactions → Correction: EIP-2930 is optional; transactions can still be processed without an access list.
Risks & limitations
- Increased transaction size: Including an access list adds to the transaction's size, which could marginally increase the base gas cost if the list is large.
- Complexity: Requires users or wallets to manually or automatically generate accurate access lists, which may introduce errors or inefficiencies if not properly implemented.
- Limited adoption: As an optional feature, its benefits are only realized if widely adopted by wallets, dApps, and users.