EIP-3709 · Stagnant · Interface · 2021-08-07
EIP-3709: Remove Support for Type 1 Transactions
Proposed that wallets and providers stop producing type-1 (access-list) transactions and silently upgrade them to EIP-1559 type-2 transactions, which carry the same access list plus better fee fields.
What problem does it solve?
EIP-2718 introduced typed transactions. The first type, 0x01 from EIP-2930, is essentially a legacy transaction with an access_list attached: it still uses a single gasPrice. Shortly after, EIP-1559 added type 0x02, which also carries an access_list but replaces gasPrice with maxFeePerGas and maxPriorityFeePerGas.
Once type 2 exists, type 1 offers nothing it does not: anyone sending a type-1 transaction gets the access list but misses out on the base-fee/tip model and its smoother fee estimation. Keeping both around means more code paths in wallets and libraries for no benefit.
How it works
This is an Interface proposal: it changes nothing in consensus. Nodes would still accept type-1 transactions. Instead it asks wallets and providers, when a user or dapp submits a type-1 transaction for signing, to rewrite it as type 2 before signing:
| Field | Change |
|---|---|
type |
0x1 becomes 0x2 |
access_list |
kept as is |
gas_price |
removed, replaced by max_fee_per_gas and max_priority_fee_per_gas (set as EIP-1559 describes) |
The resulting payload is the normal type-2 shape: rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, amount, data, access_list, y_parity, r, s]).
Sample code
What such an upgrade could look like in a wallet layer (ethers v6). Choosing the fee values is up to the wallet; here they come from the provider's fee data:
import { JsonRpcProvider, TransactionRequest } from "ethers";
const provider = new JsonRpcProvider(process.env.RPC_URL);
async function upgradeType1(tx: TransactionRequest): Promise<TransactionRequest> {
if (tx.type !== 1) return tx;
const fees = await provider.getFeeData();
const { gasPrice, ...rest } = tx; // drop the legacy field
return {
...rest,
type: 2,
accessList: tx.accessList, // access list is preserved
maxFeePerGas: fees.maxFeePerGas,
maxPriorityFeePerGas: fees.maxPriorityFeePerGas,
};
}
Things to know
- Status: Stagnant. It was never finalized, and type-1 transactions remain valid on Ethereum.
- It is a recommendation for wallets and RPC providers, not a protocol rule; no hard fork is involved.
- In practice most wallets already default to type-2 transactions, so the goal of the proposal is largely met by convention.
- Rewriting a transaction the user asked to sign changes what they pay and how. A wallet doing this should show the new fee fields before signing.