Skip to content

feat(api): implement eth_baseFee JSON-RPC method#10457

Open
wjmelements wants to merge 2 commits into
besu-eth:mainfrom
wjmelements:eth-base-fee
Open

feat(api): implement eth_baseFee JSON-RPC method#10457
wjmelements wants to merge 2 commits into
besu-eth:mainfrom
wjmelements:eth-base-fee

Conversation

@wjmelements
Copy link
Copy Markdown

@wjmelements wjmelements commented May 8, 2026

PR description

Adds nonstandard eth_baseFee rpc method.
This method is similar to eth_blobBaseFee, and is implemented in erigon and in some third party RPC providers.

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests
  • hive tests: Engine or other RPCs modified?

@macfarla
Copy link
Copy Markdown
Contributor

macfarla commented May 8, 2026

@wjmelements is there a spec for this method? Also DCO check is failing, you need to add signoff to your git commits

@wjmelements
Copy link
Copy Markdown
Author

wjmelements commented May 8, 2026

@wjmelements is there a spec for this method?

No. I am simultaneously attempting to add it to execution-specs.

The several places that I have found it only disagree on how to handle pre-London return; nil is most popular, matching eth_blobBaseFee, but I have found one place (ethermint, aka cosmos evm) that returns 0 instead. 0 would have been my choice but I didn't invent this method.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: William Morriss <wjmelements@gmail.com>
Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: William Morriss <wjmelements@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants