ethereumjs-monorepo
ethereumjs-monorepo copied to clipboard
Add support for `eth_blobBaseFee` RPC endpoint
There's a new blobBaseFee
RPC endpoint in the execution API specs and we should add support for it.
You've linked the Wormhole Airdrop (could be worse). 😂 😂 😂
You've linked the Wormhole Airdrop (could be worse). 😂 😂 😂
:shushing_face: It's my secret master plan to get us free tokens!
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
Nice came looking for this. I had no idea how to calculate the blob base fee.
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
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 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.