EIP-2593 · Stagnant · Core · 2020-03-13
EIP-2593: Escalator fee market change for ETH 1.0 chain
A proposed alternative to EIP-1559 where each transaction's bid rises linearly from a start price to a max price over a block range, letting users discover the lowest acceptable fee without resubmitting.
What problem does it solve?
Before London, Ethereum priced inclusion with a simple first-price auction: each transaction named one gasPrice, and you paid exactly what you bid. Users had to guess, often overpaid, and if they bid too low they had to resubmit with a higher price.
EIP-2593 was written while EIP-1559 was being debated, explicitly to give the community a concrete alternative to compare it against. Its idea, taken from the Agoric Papers, is an escalator: instead of one fixed bid, a transaction carries a bid that automatically climbs over time until someone includes it.
How it works
gasPrice becomes optional. A transaction may instead specify four values:
| Parameter | Meaning |
|---|---|
START_PRICE |
Lowest price the sender would like to pay |
START_TIME |
First point at which the transaction is valid |
MAX_PRICE |
Highest price the sender is willing to pay |
MAX_TIME |
Point at which MAX_PRICE is reached; the bid stays at that price afterwards |
The fee paid to the block producer is a straight line between the two points, evaluated at the current block:
if BLOCK > MAX_TIME: TX_FEE = MAX_PRICE
else: TX_FEE = START_PRICE + (MAX_PRICE - START_PRICE) / (MAX_TIME - START_TIME) * (BLOCK - START_TIME)
A user in no hurry can start low and cap how long they will wait; an urgent user can start near recently accepted prices and let the bid rise if that was not enough. Either way the transaction tends to be included near the lowest price a producer will accept, with no manual resubmission.
An ordinary gasPrice transaction is simply a flat escalator (start = max), so existing wallets would keep working.
Sample code
The fee function from the spec, in TypeScript:
function txFee(
startTime: number, startPrice: number,
maxTime: number, maxPrice: number,
current: number,
): number {
if (current >= maxTime) return maxPrice;
const slope = (maxPrice - startPrice) / (maxTime - startTime);
return startPrice + slope * (current - startTime);
}
// Bid from 10 to 50 gwei over 20 blocks, checked 5 blocks in:
console.log(txFee(100, 10, 120, 50, 105)); // 20 (gwei)
Things to know
- Status is Stagnant. Ethereum adopted EIP-1559 in the London upgrade instead; this proposal was never scheduled.
- The specification is incomplete: the fork block is "TBD", there are no test cases or implementation, and it does not define how the new fields are encoded in a transaction.
- It is ambiguous whether
START_TIME/MAX_TIMEare timestamps or block numbers: the text calls them times, while the formula uses the block number. The motivation also suggests a time-based fee would encourage honest timestamps. - Part of the motivation was a detailed comparison of user strategies under the old auction, EIP-1559 and the escalator; it remains a useful read on fee-market design trade-offs.