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.
EIP-3651 proposes treating the COINBASE address as warm from the start of transaction execution. The change reduces the gas overhead of accessing the block beneficiary, including when contracts make conditional payments to it.
This article translates, summarizes, and expands on the following specification.
More EIP explainers:
Overview
EIP-3651 concerns account access within the EVM's transaction execution context. It aligns the gas charged for accessing COINBASE with the work clients already perform when processing a block.
The COINBASE address identifies the block beneficiary. Under historical proof of work, it received mining rewards and applicable transaction fees. On proof-of-stake Ethereum, it identifies the execution-layer fee recipient, which can receive priority fees and direct payments. Consensus-layer validator rewards are separate.
Transaction execution includes operations such as calling a smart contract or transferring assets. Transactions are included in blocks and executed according to the network's rules.
In EVM gas accounting, a warm account is one that belongs to the transaction's set of accessed addresses. A cold account is one that is not yet in that set.
Warm and cold account access
The original Japanese article also discusses warm and cold wallets, which refer to different approaches to key storage and accessibility. Cold wallets generally keep signing keys offline, while more accessible wallet arrangements may allow more frequent interaction.
Those wallet classifications concern security, accessibility, and custody. They are unrelated to the warm/cold distinction in EIP-2929 and EIP-3651.
Under EVM gas accounting, warm status affects the gas charged for applicable account-access operations. It does not indicate whether a private key is online or offline, whether the account has sufficient funds, or whether its data is physically present in a particular cache.
Gas measures the computational and storage resources consumed by EVM operations. The actual ETH fee also depends on the applicable gas price.
EIP-3651 changes account-access gas accounting. It does not require the COINBASE address to hold funds for transaction fees or transfer the transaction sender's obligation to pay for gas.
Motivation
Direct COINBASE payments
Direct payments to the block beneficiary can be made conditional on successful execution. If an enclosing transaction reverts, its state changes, including such a direct payment, are reverted. This can make conditional compensation arrangements more efficient. Ordinary transaction gas fees are not generally refunded merely because execution reverts.
Access List Framework and EIP-2929
EIP-2929 introduced different gas charges for cold and warm accesses to accounts and storage keys. An initial access can cost more than a subsequent warm access within the same transaction.
For EIP-2929, see the following article.
EIP-2929: Understanding increased gas costs for state-access opcodes
Gas cost mismatch and overpriced COINBASE access
Before EIP-3651, COINBASE was initially treated as cold unless another rule had already warmed it. The proposal argues that this charge was unnecessarily high given the account's role in transaction processing.
Incentives for alternative payments
Disproportionate gas costs for direct ETH payments may encourage alternative payment arrangements, including ERC-20 token payments. The proposal favors removing that distortion so ETH remains the natural payment mechanism for Ethereum transactions.
Making COINBASE warm reduces unnecessary account-access overhead for direct payments without changing the conditions under which transactions execute or revert.
Specification
EIP-3651 changes the initial account-access set for transaction execution.
Beginning of transaction execution
Before the EVM begins executing the transaction, the protocol initializes the execution context and the relevant gas-accounting state.
Initializing accessed_addresses
The EIP-2929 access-tracking mechanism maintains a transaction-scoped set called accessed_addresses. EIP-3651 adds the block beneficiary to that initial set.
COINBASE address
The beneficiary is obtained through the EVM's COINBASE instruction. The address is specified in the block's execution context; it is not automatically generated for each transaction.
0x41
0x41 is the opcode of the EVM's COINBASE instruction, not the beneficiary's account address. The instruction returns the beneficiary address. EIP-3651 warms that returned address.
Rationale
The proposal argues that accounts already needed at the beginning of transaction processing should receive warm access treatment.
ORIGIN address
The transaction origin is available during validation because the protocol checks the sender's balance and its ability to cover the required transaction costs.
tx.to address
The transaction destination is needed to begin executing an ordinary message-call transaction. Contract creation transactions have their own corresponding address initialization rules.
COINBASE address
The block beneficiary receives applicable fees and, under the historical proof-of-work model, mining rewards. Treating it as warm reflects its role in processing the block.
ORIGIN, the transaction destination where applicable, and COINBASE are among the addresses initialized as warm. Other initialization rules, including those for precompiles and transaction access lists, continue to apply.
Compatibility
The proposal identifies no known backward compatibility issues introduced by this change.
Security
The proposal identifies no new security considerations arising specifically from the warm COINBASE rule. This does not imply that contracts making external calls to the beneficiary are free from ordinary external-call risks.
Citation
William Morriss (@wjmelements), "EIP-3651: Warm COINBASE," Ethereum Improvement Proposals, no. 3651, July 2021. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-3651.
Conclusion
EIP-3651 reduces unnecessary account-access gas costs by treating the COINBASE address as warm from the start of transaction execution. This is particularly relevant to contracts that make direct conditional payments to the block beneficiary.
Questions are welcome via Twitter @cardene777.
Other publications:


