---
eip: 8178
label: EIP-8178
title: Binary SSZ Transport for the Engine API
status: Draft
type: Standards Track
category: Core
created: 2026-03-01
official: https://eips.ethereum.org/EIPS/eip-8178
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8178.md
canonical: https://eips.huatuo.xyz/eip-8178/
lang: en
tldr: Proposes a binary SSZ-over-HTTP alternative to JSON-RPC for the Engine API between consensus and execution clients, cutting payload sizes and removing hex/JSON encoding from the block-processing critical path.
tags: [engine-api, ssz, clients, networking, core]
---

# EIP-8178: Binary SSZ Transport for the Engine API

> Specifies a binary SSZ transport as an alternative to JSON-RPC for Engine API communication

**TL;DR:** Proposes a binary SSZ-over-HTTP alternative to JSON-RPC for the Engine API between consensus and execution clients, cutting payload sizes and removing hex/JSON encoding from the block-processing critical path.

## What problem does it solve?

Every post-Merge Ethereum node is two programs: a consensus-layer (CL) client and an execution-layer (EL) client. They talk through the **Engine API**, which today is JSON-RPC. That is wasteful on the hottest path in the node:

- hashes, addresses, transactions and blobs are hex-encoded, roughly doubling their size;
- both sides spend CPU generating and parsing JSON;
- the CL already holds everything in SSZ, so it converts SSZ → JSON only for the EL to convert JSON → its own types.

With blobs making payloads larger, this overhead matters for block propagation and validation timing. The spec estimates about a 50 % size reduction with binary SSZ.

## How it works

- **Same port, new paths.** The existing Engine API port (default `8551`) additionally serves REST endpoints under `/engine`, in the same style as the Beacon API. JSON-RPC keeps working on `POST /`.
- **Raw SSZ bodies.** Requests and responses are SSZ bytes with `Content-Type: application/octet-stream`. Errors are short `text/plain` messages.
- **Same JWT auth** as JSON-RPC via `Authorization: Bearer <token>`.
- **Versioned resources** mirror the JSON-RPC method versions: `POST /engine/v{N}/payloads` (`engine_newPayload`), `GET /engine/v{N}/payloads/{payload_id}` (`engine_getPayload`), `POST /engine/v{N}/forkchoice`, `POST /engine/v{N}/blobs`, payload bodies by hash/range, and client version.
- **HTTP status codes** carry outcomes: `200` with an SSZ body, `204` for a null result such as "syncing", `400` malformed SSZ, `401` bad JWT, `404` unknown payload ID, `409` invalid forkchoice state, `422` invalid payload attributes.
- **SSZ containers** are defined for every Engine API structure across forks (Paris through Osaka). JSON `null` becomes `List[T, 1]` (empty = absent), and `PayloadStatus.status` becomes a `uint8` enum (`0` VALID, `1` INVALID, `2` SYNCING, `3` ACCEPTED, `4` INVALID_BLOCK_HASH).

## Sample code

Forkchoice update and payload retrieval, from the spec's examples:

```bash
# Update fork choice (body is an SSZ-encoded ForkchoiceUpdatedV3Request)
curl -X POST http://localhost:8551/engine/v3/forkchoice \
  -H "Authorization: Bearer $JWT_TOKEN" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @forkchoice_request.ssz \
  -o forkchoice_response.ssz

# Fetch the payload that the EL built for that payload ID
curl -X GET http://localhost:8551/engine/v4/payloads/0x1234567890abcdef \
  -H "Authorization: Bearer $JWT_TOKEN" \
  -H "Accept: application/octet-stream" \
  -o get_payload_response.ssz
```

One of the container definitions:

```python
class ForkchoiceUpdatedV3Request(Container):
    forkchoice_state: ForkchoiceStateV1          # head, safe, finalized hashes
    payload_attributes: List[PayloadAttributesV3, 1]  # empty list = no build
```

## Things to know

- Status is **Draft**.
- No hard fork is needed: this is a client-to-client transport change that each client team can ship in a normal release. JSON-RPC stays available, and clients that skip SSZ are unaffected.
- Implementations must enforce size limits before fully deserializing SSZ, validate the `payload_id` path parameter, and are advised to fuzz their SSZ parsers.
- This is not a user-facing RPC change: wallets and dapps keep using the normal `eth_*` JSON-RPC API.


---

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