Skip to content

Comments

feat(rpc-types-eth): add blob_base_fee to BlockOverrides#3585

Merged
mattsse merged 1 commit intomainfrom
feat/block-overrides-blob-base-fee
Jan 24, 2026
Merged

feat(rpc-types-eth): add blob_base_fee to BlockOverrides#3585
mattsse merged 1 commit intomainfrom
feat/block-overrides-blob-base-fee

Conversation

@mattsse
Copy link
Member

@mattsse mattsse commented Jan 24, 2026

Summary

This PR adds support for the blobBaseFee field in BlockOverrides and removes deny_unknown_fields for better forward compatibility.

Changes

  • Remove deny_unknown_fields: Allows clients to accept new fields without breaking, improving forward compatibility
  • Add blob_base_fee field: Supports overriding the blob base fee in eth_simulateV1 calls
  • Add with_blob_base_fee builder method: Convenience method for setting blob base fee
  • Update is_empty check: Include blob_base_fee in the emptiness check

Motivation

The eth_simulateV1 RPC method supports overriding block parameters including blobBaseFee. This field is used in the execution-apis test suite and clients like geth support it.

Removing deny_unknown_fields also 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-features passes
  • cargo test -p alloy-rpc-types-eth --all-features passes

- 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]>
@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Jan 24, 2026
@mattsse mattsse merged commit 17e1dde into main Jan 24, 2026
30 checks passed
@mattsse mattsse deleted the feat/block-overrides-blob-base-fee branch January 24, 2026 12:53
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants