diff --git a/src/eth_rpc/api/eth_api.rs b/src/eth_rpc/api/eth_api.rs index 14610a59f..bfab74e46 100644 --- a/src/eth_rpc/api/eth_api.rs +++ b/src/eth_rpc/api/eth_api.rs @@ -157,6 +157,10 @@ pub trait EthApi { #[method(name = "maxPriorityFeePerGas")] async fn max_priority_fee_per_gas(&self) -> Result; + /// Introduced in EIP-4844, returns the current blob base fee in wei. + #[method(name = "blobBaseFee")] + async fn blob_base_fee(&self) -> Result; + /// Returns whether the client is actively mining new blocks. #[method(name = "mining")] async fn mining(&self) -> Result; diff --git a/src/eth_rpc/servers/eth_rpc.rs b/src/eth_rpc/servers/eth_rpc.rs index 012b1b70a..f0d8a3910 100644 --- a/src/eth_rpc/servers/eth_rpc.rs +++ b/src/eth_rpc/servers/eth_rpc.rs @@ -192,6 +192,10 @@ where Ok(U128::from(*MAX_PRIORITY_FEE_PER_GAS)) } + async fn blob_base_fee(&self) -> Result { + Err(EthProviderError::MethodNotSupported("eth_blobBaseFee".to_string()).into()) + } + async fn mining(&self) -> Result { tracing::warn!("Kakarot chain does not use mining"); Ok(false)