EIP-2474 Direct coinbase calls (Coinbase calls)

No call decision · Account abstraction · EIP status Stagnant · created 2020-01-19

A proposal that lets the validator producing a block (the coinbase) call a contract directly without a signed transaction. If the call does not use msg.sender, it executes with no gas fee.

Why it is needed

Even when a validator wants to execute a call that never uses msg.sender, today it must still construct a signed transaction. A representative example is acting as a gas relayer under EIP-1077. A validator that wants to collect the fee for a meta-transaction signs and sends a transaction with gasPrice=0, and in this transaction the signer address (msg.sender) is never used anywhere. Yet the EVM still runs the ecrecover operation to verify the signature, wasting the cost of signature verification that is never used. This proposal tries to eliminate that waste by letting the validator insert a call into a block directly, with no signature at all.

What changes

Today

After EIP-2474

Who is affected

In depth

Insertion point and gas handling

The call executed by the validator (block.coinbase) is included at the very front of the block. This call also consumes the block's gas normally, but rather than the validator paying or receiving that gas fee, the call logic itself compensates the validator through some other mechanism.

Restriction on accessing msg.sender

This unsigned call can execute any call without a transaction, but if the call logic tries to read msg.sender, it is treated as an invalid jump and execution halts. In other words, it can only be applied to logic that does not use msg.sender.

Setting tx.origin and gas.price

Throughout the call the validator inserts and the entire call stack that follows, tx.origin is set to block.coinbase and gas.price is set to 0. Otherwise, execution behaves the same as a normal call.

Background: eliminating unnecessary ecrecover

When a validator takes on a role that does not use msg.sender, like an EIP-1077 gas relayer, it currently has to sign and send a gasPrice=0 transaction, wasting the cost of a signature verification (ecrecover) that is never used. This proposal tries to remove that overhead.

Backward compatibility concerns

Because there are cases where tx.origin becomes block.coinbase, poorly designed contracts that misuse tx.origin for signature verification could run into problems. The original text states that analysis of how existing contracts use tx.origin is needed.

Incomplete state and stalled status

The Rationale, Test Cases, Implementation, and Security Considerations sections are all empty and marked TBD, and the proposal's status is Stagnant. No fork-inclusion decision has been made, and it remains an early-stage idea whose details and security review were never filled in.

Original EIP · ← EIPs