ethereumjs / ethereumjs-monorepo

Monorepo for the Ethereum VM TypeScript Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for `eth_blobBaseFee` RPC endpoint

acolytec3 opened this issue Β· comments

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). πŸ˜‚ πŸ˜‚ πŸ˜‚

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

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

getBlobGasPrice(): bigint {

@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.