---
eip: 8131
label: EIP-8131
title: Unified Transaction Content Floor
status: Draft
type: Standards Track
category: Core
created: 2025-01-21
requires: 2028, 4844, 7623, 7702, 7976, 7981
official: https://eips.ethereum.org/EIPS/eip-8131
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8131.md
canonical: https://eips.huatuo.xyz/eip-8131/
lang: en
tldr: Prices every user-controlled byte of a transaction (calldata, access lists, EIP-7702 authorizations, blob hashes) at a flat 64 gas at the floor, giving one simple rule that hard-caps worst-case block size.
tags: [core, gas, calldata, block-size, pricing]
---

# EIP-8131: Unified Transaction Content Floor

> Flat 64 gas per content byte at the floor, covering all user-controlled transaction fields and capping worst-case block size.

**TL;DR:** Prices every user-controlled byte of a transaction (calldata, access lists, EIP-7702 authorizations, blob hashes) at a flat 64 gas at the floor, giving one simple rule that hard-caps worst-case block size.

## What problem does it solve?

Nodes must be able to handle the biggest block an attacker can build, not the average one. [EIP-7623](/eip-7623/) introduced a **floor** price for calldata so that data-heavy transactions cannot fill blocks cheaply. Follow-ups pushed the floor to a uniform 64 gas per calldata byte ([EIP-7976](/eip-7976/)) and extended it to access-list entries ([EIP-7981](/eip-7981/)).

Two kinds of transaction content still pay nothing at the floor: [EIP-7702](/eip-7702/) authorization tuples and [EIP-4844](/eip-4844/) blob versioned hashes. And each new field has needed its own EIP and constants. EIP-8131 replaces these piecemeal rules with one formula covering every user-controlled content byte.

## How it works

The floor for a transaction is:

```
tx_floor = 21000 + 64 * (
      len(calldata)
    + 20  * access_list_addresses
    + 32  * access_list_storage_keys
    + 108 * eip7702_authorizations      # worst-case RLP size of one auth tuple
    + 32  * blob_versioned_hashes
)
```

Charging keeps the shape introduced by EIP-7623:

```
require tx.gas >= max(intrinsic_gas, tx_floor)
gas_used = max(execution_gas_used, tx_floor)
```

- **Intrinsic gas is unchanged** (still 4/16 gas per zero/non-zero calldata byte per [EIP-2028](/eip-2028/)). The floor only matters for transactions that carry a lot of data relative to the computation they do.
- **Content only, not full RLP.** Envelope and signature bytes are treated as covered by the 21,000 base cost, so two transactions with identical content pay the same floor whatever their type.
- **Block-size bound.** Since every content byte costs at least 64 gas, total attacker-controlled content per block is at most `block_gas_limit / 64`, roughly 0.94 MB at a 60M gas limit, with no assumptions about compression.

## Sample code

Computing the floor client-side so gas estimates do not come up short (TypeScript):

```ts
type TxContent = {
  data: Uint8Array;
  accessList?: { address: string; storageKeys: string[] }[];
  authorizationCount?: number;      // EIP-7702 auths
  blobVersionedHashCount?: number;  // EIP-4844 blob hashes
};

export function txFloor(tx: TxContent): bigint {
  const al = tx.accessList ?? [];
  const keys = al.reduce((n, e) => n + e.storageKeys.length, 0);
  const bytes =
    tx.data.length +
    20 * al.length +
    32 * keys +
    108 * (tx.authorizationCount ?? 0) +
    32 * (tx.blobVersionedHashCount ?? 0);
  return 21000n + 64n * BigInt(bytes);
}

// gasLimit must be at least max(intrinsic, txFloor(tx))
txFloor({ data: new Uint8Array(0), authorizationCount: 1 }); // 27912n
```

## Things to know

- Status: **Draft**. It would require a hard fork, and it folds in EIP-7976 and EIP-7981 rather than stacking on them.
- Plain ETH transfers are unaffected (floor = 21,000). A typical token transfer is far below the floor; a 50k-gas transaction needs more than about 450 bytes of calldata before the floor applies.
- The biggest impact falls on EIP-7702 (type-4) transactions, since each authorization now adds 6,912 gas at the floor, and on blob-carrying transactions, which pay for their 32-byte versioned hashes.
- Wallets and `eth_estimateGas` must compute the new floor, or estimates for floor-bound transactions will be too low and rejected.
- The spec includes its own mainnet impact sample (May 2026); treat those figures as the author's measurement, not a guarantee.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8131
