-
Notifications
You must be signed in to change notification settings - Fork 644
Add support for new beacon chain /blobs endpoint #3831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
joshuacolvin0
merged 1 commit into
v3.8.x-release
from
v3.8.x-release-support-beacon-blob-api
Oct 14, 2025
Merged
Add support for new beacon chain /blobs endpoint #3831
joshuacolvin0
merged 1 commit into
v3.8.x-release
from
v3.8.x-release-support-beacon-blob-api
Oct 14, 2025
Conversation
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
This change adds support for the new beacon chain endpoint `/eth/v1/beacon/blobs/{block_id}` introduced in Fusaka while maintaining backward compatibility with the legacy endpoint `/eth/v1/beacon/blob_sidecars/{slot}`. block_id can be a slot so Nitro just uses slot. The new endpoint supports server-side filtering by versioned hash via query parameters. Since the Arbitrum sequencer inbox message contains the versioned hashes of the blobs that were posted, we can include those in the query. Key changes: - Added `UseLegacyEndpoint` flag to BlobClientConfig to control which endpoint to use - Created new `GetBlobsBySlot()` public method for direct slot-based blob fetching - Implemented `getBlobs()` method for the new endpoint with versioned hash verification - Updated `beaconRequest()` to support query parameters for filtering - Added KZG commitment verification when versioned hashes are provided Created `blobtool` CLI utility for testing both endpoints: ``` # Fetch specific blob using new endpoint (default) blobtool fetch --beacon-url=<url> --slot=<slot> --versioned-hashes=<hash> # Fetch using legacy endpoint (requires versioned hashes) blobtool fetch --beacon-url=<url> --slot=<slot> --versioned-hashes=<hash> --use-legacy-endpoint # Compare both endpoints side-by-side blobtool fetch --beacon-url=<url> --slot=<slot> --versioned-hashes=<hash> --compare-endpoints ``` The new endpoint is used by default, with automatic fallback behavior maintained through the existing secondary beacon URL mechanism. Spec reference: https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/blobs/blobs.yaml
❌ 4 Tests Failed:
View the top 3 failed tests by shortest run time
📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
joshuacolvin0
approved these changes
Oct 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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 change adds support for the new beacon chain endpoint
/eth/v1/beacon/blobs/{block_id}
introduced in Fusaka while maintaining backward compatibility with the legacy endpoint/eth/v1/beacon/blob_sidecars/{slot}
. block_id can be a slot so Nitro just uses slot.The new endpoint supports server-side filtering by versioned hash via query parameters. Since the Arbitrum sequencer inbox message contains the versioned hashes of the blobs that were posted, we can include those in the query.
Key changes:
UseLegacyEndpoint
flag to BlobClientConfig to control which endpoint to useGetBlobsBySlot()
public method for direct slot-based blob fetchinggetBlobs()
method for the new endpoint with versioned hash verificationbeaconRequest()
to support query parameters for filteringCreated
blobtool
CLI utility for testing both endpoints:The new endpoint is used by default, with automatic fallback behavior maintained through the existing secondary beacon URL mechanism.
Spec reference: https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/blobs/blobs.yaml
NIT-3885
Cherry pick of #3826 and #3830
Testing
To test the new fetching method I added a new tool called
blobtool
. It's intended to be used for testing beacon endpoints, and it can use either the new or old method for fetching blobs. This is even more important after Fusaka where it is even more difficult to configure beacon nodes to have and keep all blobs. In future we may want to add some features like looking up blobs by block number, which is something operators often want to do.