ethereumjs-monorepo icon indicating copy to clipboard operation
ethereumjs-monorepo copied to clipboard

Add support for `eth_blobBaseFee` RPC endpoint

Open acolytec3 opened this issue 11 months ago • 3 comments

There's a new blobBaseFee RPC endpoint in the execution API specs and we should add support for it.

acolytec3 avatar Mar 09 '24 13:03 acolytec3

You've linked the Wormhole Airdrop (could be worse). 😂 😂 😂

holgerd77 avatar Mar 11 '24 08:03 holgerd77

You've linked the Wormhole Airdrop (could be worse). 😂 😂 😂

:shushing_face: It's my secret master plan to get us free tokens!

acolytec3 avatar Mar 11 '24 10:03 acolytec3

Some resources:

  • https://github.com/ethereum/go-ethereum/issues/29139
  • https://eips.ethereum.org/EIPS/eip-7516
  • https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/cancun.md
  • https://blog.ethereum.org/2024/02/27/dencun-mainnet-announcement

scorbajio avatar Apr 23 '24 01:04 scorbajio

Nice came looking for this. I had no idea how to calculate the blob base fee.

roninjin10 avatar May 21 '24 23:05 roninjin10

It's a pretty trivial addition as we already have the code for it (I think in block). Just need to expose it via the rpc. I just need to take the time to build it out

acolytec3 avatar May 21 '24 23:05 acolytec3

Oh I see it does exist on block/common just not named baseFee https://github.com/ethereumjs/ethereumjs-monorepo/blob/1dceddf26d9c610a6a7ad787b1c654f42da9887d/packages/block/src/header.ts#L623

roninjin10 avatar May 22 '24 00:05 roninjin10

@roninjin10 PR in flight. It's pretty trivial but might do some additional test cleanup before we merge. But this gives you an idea of how to implement it using our code if you want to add something similar in tevm.

acolytec3 avatar May 22 '24 01:05 acolytec3