Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/engine/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This document specifies common definitions and requirements affecting Engine API
- [Errors](#errors)
- [Timeouts](#timeouts)
- [Encoding](#encoding)
- [Binary SSZ transport](#binary-ssz-transport)
- [Capabilities](#capabilities)
- [engine_exchangeCapabilities](#engine_exchangecapabilities)
- [Request](#request)
Expand Down Expand Up @@ -136,6 +137,14 @@ Values of a field of `QUANTITY` type **MUST** be encoded as a hexadecimal string

*Note:* Byte order of encoded value having `QUANTITY` type is big-endian.

### Binary SSZ transport

Clients **MAY** support a binary SSZ transport as an alternative to JSON-RPC. The binary transport uses resource-oriented REST endpoints with raw SSZ request and response bodies (`application/octet-stream`), eliminating JSON and hex-encoding overhead for fast CL-EL communication. Endpoints follow Beacon API conventions with path-based versioning (e.g., `POST /engine/v5/payloads`).
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current specs define the capabilities as JSON-RPC methods names like:

  • engine_newPayloadV2
  • engine_getPayloadV5

This suggestion change the capabilities vocabulary to strings like POST /engine/v5/payloads.

This is protocol change, not just a transport addition.


When both the consensus layer and execution layer clients support the binary SSZ transport, they **SHOULD** use it. When either client does not support it, both **MUST** fall back to JSON-RPC encoding.

The full specification is defined in the [Binary SSZ Transport](./ssz-encoding.md) document.

[json-rpc-spec]: https://playground.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/openrpc.json&uiSchema[appBar][ui:splitView]=false&uiSchema[appBar][ui:input]=false&uiSchema[appBar][ui:examplesDropdown]=false

## Capabilities
Expand Down
Loading
Loading