feat(rpc-types-eth): add blob_base_fee to BlockOverrides#3585
Merged
Conversation
- Remove deny_unknown_fields from BlockOverrides to allow forward compatibility - Add blob_base_fee field for overriding blob base fee in eth_simulateV1 - Add with_blob_base_fee builder method - Update is_empty check to include blob_base_fee Amp-Thread-ID: https://ampcode.com/threads/T-019befd2-21c9-74f0-a813-27f04b7291b3 Co-authored-by: Amp <[email protected]>
grandizzy
approved these changes
Jan 24, 2026
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.
Summary
This PR adds support for the
blobBaseFeefield inBlockOverridesand removesdeny_unknown_fieldsfor better forward compatibility.Changes
deny_unknown_fields: Allows clients to accept new fields without breaking, improving forward compatibilityblob_base_feefield: Supports overriding the blob base fee ineth_simulateV1callswith_blob_base_feebuilder method: Convenience method for setting blob base feeis_emptycheck: Includeblob_base_feein the emptiness checkMotivation
The
eth_simulateV1RPC method supports overriding block parameters includingblobBaseFee. This field is used in the execution-apis test suite and clients like geth support it.Removing
deny_unknown_fieldsalso prevents deserialization failures when new fields are added to the spec, making the type more resilient to upstream changes.Testing
cargo check -p alloy-rpc-types-eth --all-featurespassescargo test -p alloy-rpc-types-eth --all-featurespasses