Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers EIP2930, a proposal for a new transaction type that includes an access list: a list of addresses and storage keys the transaction plans to access.
This article translates, summarizes, and expands on the following specification.
I have also covered various other EIPs.
Overview
EIP2718 introduces new transaction types for Ethereum. The main feature of the type discussed here is the addition of an access list. An access list contains the addresses and storage keys a transaction intends to access, helping make transaction processing more efficient.
The Access List Concept
An access list is a list of addresses and storage keys a transaction expects to access. Accesses to addresses and keys on the list receive a gas discount compared with accesses outside it.
Transaction Format
The new transaction type is defined as follows.
0x01 || rlp([chainId, nonce, gasPrice, gasLimit, to, value, data, accessList, signatureYParity, signatureR, signatureS])0x01identifies the new transaction type.rlp(...)encodes the transaction data.chainId, nonce, gasPrice, gasLimit, to, value, dataare parameters corresponding to those in conventional transactions.accessListrepresents the access list described above.signatureYParity, signatureR, signatureSare parameters associated with the transaction signature.
Gas Costs and Efficiency
Accessing addresses and storage keys included in the access list incurs a discounted gas cost. This is intended to improve transaction-processing efficiency. Access outside the list is still allowed, but costs more.
Relationship with EIP2929
The new transaction type works with the global sets accessed_addresses and accessed_storage_keys introduced by EIP2929.
Addresses and keys in the access list are added to these sets, which are consulted during transaction processing.
For more on EIP2929, see the following article.
[EIP2929] Increasing Gas Costs for Certain Opcodes
The typed transaction framework introduced by EIP2718, together with this access-list transaction type, can improve transaction processing and reduce gas costs. Listing frequently accessed addresses and keys in advance can reduce smart contract execution costs.
Motivation
This EIP addresses particular problems and introduces new functionality through two main mechanisms.
Mitigating Risks to Contracts Introduced by EIP2929
Background
EIP2929 increased the gas costs of certain operations, including SLOAD and the EXT* opcodes, to improve smart contract security.
However, existing contracts could encounter unexpectedly high gas costs and stop working (become "stuck").
Solution
This EIP allows transactions to identify the accounts and storage slots they expect to access in advance and pay for those accesses upfront.
During execution, SLOAD and the EXT* opcodes can then cost as little as 100 gas. This can prevent problems introduced by EIP2929 and allow contracts stuck because of EIP1884 to become unstuck.
Introducing an Access List Format and Processing Logic
Access Lists
A list of addresses and storage keys a transaction intends to access. It helps make transactions more efficient and save gas.
Multiple Uses
The access list format and processing logic introduced by this EIP can be reused for different purposes in the future.
Potential applications include block-wide witnesses, ReGenesis (a proposal to improve Ethereum's scalability and sustainability), and a gradual shift toward static state access.
New concepts and mechanisms introduced by Ethereum Improvement Proposals can have various applications that improve Ethereum's scalability (its ability to handle more transactions) and sustainability. Specific examples include block-wide witnesses, ReGenesis, and a gradual shift toward static state access.
Block-wide Witnesses
A block witness is the data needed to demonstrate that a block is valid. It includes transaction data and information about the state modified by transactions. With witness data, blockchain nodes can verify a block without holding every transaction or the complete state. This contributes to network scalability.
ReGenesis
ReGenesis is a proposal intended to address blockchain growth by periodically resetting Ethereum's state. Resetting the state aims to reduce the amount of data nodes must retain and make it easier for new nodes to synchronize. The goal is to improve network sustainability.
A Gradual Shift Toward Static State Access
Ethereum's state changes dynamically as transactions occur. A gradual shift toward static state access means making access to Ethereum's state more predictable and less subject to change. This makes data retrieval and verification easier, improving network efficiency.
These applications are part of efforts to make Ethereum faster, easier to use, and more sustainable. How these proposals and mechanisms are implemented, and their eventual impact, will depend on how the technology develops.
These features are intended to increase Ethereum's efficiency and flexibility and contribute to the future development of blockchain technology.
Specification
TransactionType
An identifier indicating the transaction type.
EIP2718 introduced a new transaction envelope format, enabling support for multiple transaction types.
The value 1 identifies one such transaction type, with its own structure and rules.
ChainId
An identifier for the particular network on which the transaction is valid.
Ethereum has multiple networks, including mainnet and testnets such as Ropsten and Rinkeby (historical examples).
ChainId ensures that the transaction is processed only on the intended network.
This prevents transaction replay attacks across networks.
YParity
Indicates the parity of the y coordinate of the secp256k1 signature, the elliptic-curve cryptography used for Ethereum transaction signatures.
The signature includes r, s, and a value indicating the parity of the y coordinate.
A YParity of 0 indicates an even coordinate, while 1 indicates an odd coordinate.
This value is used to uniquely identify and verify the transaction signature.
Together, these definitions help Ethereum process transactions securely and efficiently.
TransactionType identifies the transaction format, ChainId identifies the network where it should be processed, and YParity helps verify its signature.
Parameters
The specification describes the new transaction type and how to calculate gas costs using an access list. The additional gas cost is calculated from the access list included in the new transaction type. The list specifies the addresses and storage keys the transaction plans to access. The charges cover both bandwidth usage and state access costs.
The following table lists the main parameters for this transaction type under the EIP2718 framework.
| Constant | Value |
|---|---|
| FORK_BLOCK | 12244000 |
| ACCESS_LIST_STORAGE_KEY_COST | 1900 |
| ACCESS_LIST_ADDRESS_COST | 2400 |
- FORK_BLOCK
- The block number at which the new transaction type is introduced.
- ACCESS_LIST_STORAGE_KEY_COST
- The gas cost for each storage key in the access list.
- ACCESS_LIST_ADDRESS_COST
- The gas cost for each address in the access list.
Processing the Access List
- Access list
- A list of addresses and storage keys the transaction expects to access.
- Its format is [[address, [storage key, ...]], ...].
- Addresses are
20bytes long and storage keys are32bytes long.
- Gas cost calculation
- At the start of transaction execution, an additional gas charge is applied for each address and storage key in the list.
- For example, if the list contains two addresses and two storage keys, the gas cost is
ACCESS_LIST_ADDRESS_COST * 2 + ACCESS_LIST_STORAGE_KEY_COST * 2.
Example Implementation
The process_access_list function processes the access list and returns the sets of accessed addresses and storage keys, along with the total gas cost.
It validates the access list and calculates gas costs.
Duplicate addresses or storage keys are allowed, but they are charged multiple times.
def process_access_list(access_list) -> Tuple[List[Set[Address], Set[Pair[Address, Bytes32]]], int]:
accessed_addresses = set()
accessed_storage_keys = set()
gas_cost = 0
assert isinstance(access_list, list)
for item in access_list:
assert isinstance(item, list) and len(item) == 2
# Validate and add the address
address = item[0]
assert isinstance(address, bytes) and len(address) == 20
accessed_addresses.add(address)
gas_cost += ACCESS_LIST_ADDRESS_COST
# Validate and add the storage keys
assert isinstance(item[1], list)
for key in item[1]:
assert isinstance(key, bytes) and len(key) == 32
accessed_storage_keys.add((address, key))
gas_cost += ACCESS_LIST_STORAGE_KEY_COST
return (
accessed_addresses,
accessed_storage_keys,
gas_cost
)Note
An access list is not charged per byte like transaction data. The per-item costs above are intended to cover the bandwidth cost of the access list data and the cost of accessing those accounts and storage keys when evaluating the transaction.
Rationale
This section describes the intent and design decisions behind the access-list functionality.
Reducing Access Costs with Access Lists
Accesses listed in the access list cost less to encourage its use wherever possible and to make transactions easier to process when storage reads are predictable. With predictable storage reads, clients can preload data from their databases, request witnesses when receiving transactions, or at least load the data in parallel. This improves efficiency across the network.
Allowing Duplicates
Duplicates are permitted to keep the system as simple as possible and avoid deciding what must be checked for duplication: just addresses and keys in the list, addresses shared with the sender, recipient or newly created contract, or other restrictions. Because gas is charged per item, including a value twice offers no benefit and only adds cost. It is therefore unlikely to cause unnecessary chain growth in practice.
Signing the Transaction Type and Data
Both the transaction type and the transaction data are signed to prevent the transaction from being reinterpreted as another type of transaction. This preserves transaction integrity and helps ensure that it executes as intended.
These design choices aim to improve Ethereum's efficiency, security, and simplicity. Encouraging access lists, simplifying the system, and preserving the consistency and integrity of transactions are the primary reasons behind these choices.
Compatibility
This EIP concerns increased gas costs for unexpected SLOAD operations (reads from storage) and account accesses.
Because access-list gas is paid upfront when submitting a transaction, it does not affect fixed-gas local calls (such as function calls within smart contracts), avoiding risks associated with earlier gas cost increases, including broken contracts.
However, applications that depend heavily on storage access may become economically difficult to run.
Increased Gas Costs
Unexpected storage reads and account accesses require more gas than before. This acts as a penalty for unnecessarily consuming network resources.
Avoiding the Risk of Broken Contracts
Because gas for the access list is paid upfront when a transaction is submitted, the cost does not affect the execution of local calls, such as calls within smart contracts. This helps avoid the risk of broken contracts introduced by previous gas cost increases.
A broken contract is a smart contract that no longer functions as intended. This can generally happen for several reasons.
Increased Gas Costs
Ethereum network upgrades or the introduction of EIPs can increase the gas costs of certain opcodes. If a smart contract frequently uses those opcodes, transaction execution costs can unexpectedly increase. Transactions may fail or become uneconomical (costs exceed revenue or benefits). The contract can effectively become broken.
Security Issues
Smart contracts may contain coding errors or design flaws. If exploited, these can result in assets being stolen or the contract being manipulated in unauthorized ways. For example, a reentrancy attack exploits the ability to call a function again before it has finished executing, as seen in the well-known The DAO incident.
Dependency Issues
Smart contracts may rely on other contracts or external data sources. If these dependencies change or become unavailable, a smart contract may no longer function correctly.
Incomplete Upgradeability
Smart contracts are immutable; their code cannot be changed directly after deployment. Upgradeable contract patterns can work around this restriction, but a flawed implementation of such a pattern can break a contract.
Avoiding these issues requires thorough verification and testing when designing and implementing smart contracts. It is also important to monitor the impact of network upgrades and EIPs and revisit contract designs where necessary.
Economics of Storage-Dependent Applications
Applications that frequently access storage may become economically difficult to operate as gas costs increase. While this encourages developers to devise more efficient data access patterns, it can also affect existing storage-intensive applications.
The EIP aims to improve the efficiency and security of Ethereum, but it also calls for careful consideration of application design.
Security
This section describes the generation of access lists and their impact on block size.
Generating Access Lists
Generating an access list in real time is difficult in many situations. The problem is particularly acute when there is a large delay between generating and signing a transaction, or when simplicity is important for the transaction generator (for example, in a hardware wallet).
However, this EIP initially proposes only a 10% discount for access lists, so sending a simple transaction without generating an access list incurs little additional cost. The cost of accessing state outside the list is expected to increase gradually in future hard forks as tools are developed and access-list generation matures.
Transaction Size Growth
Using access lists increases the average block size.
However, the per-byte cost of an access list is 1900 / 32 = 59.375 for storage keys and 2400 / 20 = 120 for addresses, making it much more expensive than calldata (part of the transaction data).
The worst-case block size therefore does not increase.
Furthermore, the ability to load storage in parallel when receiving transactions or blocks partially offsets the increase in average block size.
Introducing access lists has the potential to improve Ethereum's efficiency, although flexibility in how they are generated and used is important at the initial stage. Block size is a concern, but the impact is manageable and may contribute to more efficient network operation over time.
Citation
Vitalik Buterin (@vbuterin), Martin Swende (@holiman), "EIP-2930: Optional access lists," Ethereum Improvement Proposals, no. 2930, August 2020. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2930.
Conclusion
This article covered EIP2930, the proposal to introduce a transaction type with an access list containing addresses and storage keys a transaction plans to access.
If you have questions, feel free to send me a DM on Twitter.
I also share information on other platforms.


