EIP-8178 · Draft · Core · 2026-03-01
EIP-8178: Binary SSZ Transport for the Engine API
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 onPOST /. - Raw SSZ bodies. Requests and responses are SSZ bytes with
Content-Type: application/octet-stream. Errors are shorttext/plainmessages. - 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:
200with an SSZ body,204for a null result such as "syncing",400malformed SSZ,401bad JWT,404unknown payload ID,409invalid forkchoice state,422invalid payload attributes. - SSZ containers are defined for every Engine API structure across forks (Paris through Osaka). JSON
nullbecomesList[T, 1](empty = absent), andPayloadStatus.statusbecomes auint8enum (0VALID,1INVALID,2SYNCING,3ACCEPTED,4INVALID_BLOCK_HASH).
Sample code
Forkchoice update and payload retrieval, from the spec's examples:
# 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:
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_idpath 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.