---
eip: 8279
label: EIP-8279
title: Block Access List Byte Floor
status: Draft
type: Standards Track
category: Core
created: 2026-05-23
requires: 7623, 7702, 7928, 7976, 7981, 8131
official: https://eips.ethereum.org/EIPS/eip-8279
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8279.md
canonical: https://eips.huatuo.xyz/eip-8279/
lang: en
tldr: Counts the bytes each transaction adds to the Block Access List and folds them into the per-byte gas floor, so attackers can no longer pad blocks with cheap cold storage reads and the worst-case block size drops to about gas_limit / 64 bytes.
tags: [gas, block-size, bal, calldata, core]
---

# EIP-8279: Block Access List Byte Floor

> Meter EIP-7928 Block Access List bytes at runtime and fold them into the EIP-7623 transaction floor, capping worst-case block size.

**TL;DR:** Counts the bytes each transaction adds to the Block Access List and folds them into the per-byte gas floor, so attackers can no longer pad blocks with cheap cold storage reads and the worst-case block size drops to about gas_limit / 64 bytes.

## What problem does it solve?

Nodes must cope with the biggest block an attacker can build, not the average one. [EIP-7623](/eip-7623/) (and its successors [EIP-7976](/eip-7976/) and [EIP-8131](/eip-8131/)) bound that size by charging a *floor* of 64 gas per byte of transaction content such as calldata.

[EIP-7928](/eip-7928/) Block Access Lists add a new source of block bytes: every storage key, address and changed value touched during execution is written into the block. None of the existing floors price those bytes. A cold `SLOAD` adds 32 BAL bytes for only 2,100 gas, and combining it with calldata lets an attacker escape the calldata floor. At a 60M gas limit the spec computes:

| Attack | Worst-case block bytes |
| --- | --- |
| Pure calldata at the floor | 0.894 MB (intended bound) |
| Cold-`SLOAD` bypass under EIP-7928 | 1.548 MB |

## How it works

Each transaction gets two internal counters (not part of the transaction, not gossiped):

- `bal_data_bytes`: bytes this transaction has added to the BAL so far;
- `floor_gas_used = static_floor + bal_data_bytes × 64`.

`static_floor` is the EIP-8131 content floor plus 51 bytes per [EIP-7702](/eip-7702/) authorization (address + delegation marker + nonce), so delegation processing never needs runtime metering.

Before any opcode adds to the BAL, the client calls `meter_bal_data`. Examples: a cold account access adds 20 bytes, a cold storage access 32, the first `SSTORE` that moves a slot off its original value another 32 (refunded if a later write restores it), value-bearing `CALL` 32, and deployed code its length. If the new floor would exceed `tx.gas`, the operation fails with out-of-gas *before* the BAL grows.

At the end:

```
tx.gasUsed = max(execution_gas_used, floor_gas_used)
```

No gas is reserved or deducted during execution. Because every metered opcode already costs more execution gas than the floor it adds, the floor only binds for transactions whose calldata already pushed them near it, which is exactly the bypass case. Every block byte then costs at least 64 gas, giving `block_bytes ≤ block_gas_limit / 64` (about 0.89 MB at 60M).

## Sample code

The metering hook, from the spec:

```python
FLOOR_GAS_PER_BYTE = 64

def meter_bal_data(tx_env, num_bytes):
    tx_env.bal_data_bytes += num_bytes
    new_floor = tx_env.static_floor + tx_env.bal_data_bytes * FLOOR_GAS_PER_BYTE
    if new_floor > tx_env.gas_limit:      # tx.gas
        raise OutOfGasError
    tx_env.floor_gas_used = new_floor
```

The spec's bypass example: 937,500 non-zero calldata bytes give a static floor of `21,000 + 64 × 937,500 = 60,021,000`. Each cold `SLOAD` then adds `32 × 64 = 2,048` to the floor, so the attack transaction runs out of gas long before it can add meaningful BAL data.

## Things to know

- **Status: Draft.** It depends on EIP-7928 (Last Call) and EIP-8131 (Draft); the two floors are designed to work together, and neither closes the bypass alone.
- A plain ETH transfer still costs 21,000 gas. The spec's sample of mainnet transactions estimates that only a small share (well under 1 percentage point beyond EIP-8131's own effect) would pay more.
- Wallets and `eth_estimateGas` MUST simulate the floor, including runtime BAL bytes; otherwise estimates for floor-bound transactions will be too low.
- The meter deliberately over-counts in some cases (e.g. value bytes inside reverted calls are not rewound). That only raises the floor and keeps the size bound safe.
- System calls and withdrawals are not metered per transaction; EIP-7928's block-level item budget covers them.


---

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