feat(engine): add experimental REST/SSZ /new-payload-with-witness endpoint - #24617
Closed
developeruche wants to merge 7 commits into
Closed
developeruche wants to merge 7 commits into
developeruche wants to merge 7 commits into
Conversation
developeruche
requested review from
Rjected,
gakonst,
klkvr,
mattsse and
mediocregopher
as code owners
May 28, 2026 04:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces an experimental
POST /new-payload-with-witnessREST endpoint to Reth, as a complement to the existingengine_newPayloadV5JSON-RPC method.The current approach to witness retrieval requires two separate operations,
engine_newPayloadanddebug_executionWitness, both of which use JSON serialization. For large witnesses, JSON encoding introduces roughly 2× size overhead, making the process slow and bandwidth-intensive.This endpoint combines both operations into a single HTTP call using SSZ serialization, dramatically improving performance:
Benchmarked against a 500 MB witness, a worst-case, constructible block.
It is also important to note that there are ongoing discussions around introducing SSZ + HTTP to the Engine API more broadly, replacing JSON-RPC entirely, including proposals to combine "new-payload" execution and witness retrieval into a single operation. Once these discussions mature, we can standardize around a unified approach. However, this is a significant architectural change and will likely take time to reach consensus.
Engine: add Rest-SSZ spec
ethereum/execution-apis#793
Add SSZ to Engine API
ethereum/execution-apis#764
Proposal: opt-in witness retrieval via flag on existing engine methods
ethereum/execution-apis#799