---
eip: 8247
label: EIP-8247
title: Ancestor-Indexed BALs
status: Draft
type: Standards Track
category: Core
created: 2026-05-03
requires: 7928
official: https://eips.ethereum.org/EIPS/eip-8247
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8247.md
canonical: https://eips.huatuo.xyz/eip-8247/
lang: en
tldr: "Shrinks EIP-7928 block-level access lists by letting addresses and storage keys point back into one of the last eight blocks' lists instead of repeating the full 20- or 32-byte value."
tags: [bal, compression, core, state, access-list]
---

# EIP-8247: Ancestor-Indexed BALs

> Compact references to recent block access lists for repeated addresses and storage slots

**TL;DR:** Shrinks EIP-7928 block-level access lists by letting addresses and storage keys point back into one of the last eight blocks' lists instead of repeating the full 20- or 32-byte value.

## What problem does it solve?

[EIP-7928](/eip-7928/) adds a Block Access List (BAL) to every block: a list of every account and storage slot the block touched, along with the post-transaction changes. BALs enable parallel execution and validation, but they cost bandwidth, and much of their size is raw identifiers: 20-byte addresses and 32-byte storage keys.

Popular contracts and slots (major tokens, DEX pools, oracles) are touched block after block, so the same identifiers appear again and again. Pointing to where a value already appeared in a recent block is much shorter than writing it out. The author estimates a 30–50 % size reduction, depending on how much reuse there is between blocks.

## How it works

Two reference types are added, both RLP lists:

```text
AccountRef = [ancestor_offset: uint8, account_index: uint32]
SlotRef    = [ancestor_offset: uint8, account_index: uint32, slot_index: uint32]
```

- `ancestor_offset` is 0–7: 0 is the parent block, 7 the eighth ancestor.
- `account_index` is the position of the account in that ancestor's BAL (already sorted by address under EIP-7928).
- `slot_index` is the position in that account's **slot dictionary**: the sorted, de-duplicated union of its changed and read storage keys.

Wherever EIP-7928 had an `Address` or `StorageKey`, a reference may now appear. They are told apart by RLP type: a literal is a byte string, a reference is a list.

References always resolve against the fully *expanded* ancestor BAL (all references already replaced by literals), never against the encoded one, so there are no chains of references.

The encoding is **canonical**: if any valid reference exists for a value, the literal is forbidden, and the smallest reference by `(ancestor_offset, account_index, slot_index)` must be used. This makes the encoded BAL a deterministic function of the block and its ancestors, so a builder cannot pad it out.

## Sample code

Pseudocode for resolving and choosing references:

```python
def resolve(ref, block_number, expanded_ancestors):
    off = ref[0]
    assert 0 <= off <= 7
    anc = expanded_ancestors[block_number - off - 1]   # must be post-activation
    acct = anc.accounts[ref[1]]                         # IndexError -> invalid block
    if len(ref) == 2:
        return acct.address
    return acct.slot_dictionary[ref[2]]                 # sorted union of reads+writes

def encode_address(addr, block_number, expanded_ancestors):
    for off in range(8):                                # smallest offset first
        anc = expanded_ancestors.get(block_number - off - 1)
        if anc and addr in anc.account_index:
            return [off, anc.account_index[addr]]
    return addr                                         # literal only if no ref exists
```

Size saving per item:

```text
Address    20 bytes -> AccountRef ~5 bytes
StorageKey 32 bytes -> SlotRef    ~9 bytes
```

## Things to know

- **Status: Draft.** Test cases are still TBD.
- It is a hard fork change. References to blocks before activation are invalid, and pre-activation BALs keep their literal form.
- Clients must keep (or be able to rebuild) the expanded BALs and slot dictionaries for the last eight canonical blocks. Lookups are bounded array accesses, so DoS risk stays limited.
- The EIP-7928 `bal_items` size limit is applied to the expanded BAL, so compression does not let a block carry more items.
- A reorg can invalidate blocks whose references no longer resolve on the new chain, as with any data tied to its ancestors.
- BAL exchange over the network is covered separately by [EIP-8159](/eip-8159/).


---

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