diff --git a/crates/rpc/rpc-api/src/eth.rs b/crates/rpc/rpc-api/src/eth.rs index f155f5de1b..ff12af3ec2 100644 --- a/crates/rpc/rpc-api/src/eth.rs +++ b/crates/rpc/rpc-api/src/eth.rs @@ -209,9 +209,9 @@ pub trait EthApi { #[method(name = "maxPriorityFeePerGas")] async fn max_priority_fee_per_gas(&self) -> RpcResult; - /// Introduced in EIP-4844, returns the current blob gas price in wei. - #[method(name = "blobGasPrice")] - async fn blob_gas_price(&self) -> RpcResult; + /// Introduced in EIP-4844, returns the current blob base fee in wei. + #[method(name = "blobBaseFee")] + async fn blob_base_fee(&self) -> RpcResult; /// Returns the Transaction fee history /// diff --git a/crates/rpc/rpc/src/eth/api/server.rs b/crates/rpc/rpc/src/eth/api/server.rs index 96685018ca..08b14ded5b 100644 --- a/crates/rpc/rpc/src/eth/api/server.rs +++ b/crates/rpc/rpc/src/eth/api/server.rs @@ -299,7 +299,7 @@ where } /// Handler for: `eth_blobBaseFee` - async fn blob_gas_price(&self) -> Result { + async fn blob_base_fee(&self) -> Result { trace!(target: "rpc::eth", "Serving eth_blobBaseFee"); return Ok(EthApi::blob_base_fee(self).await?) } diff --git a/crates/rpc/rpc/src/eth/error.rs b/crates/rpc/rpc/src/eth/error.rs index cae7cc0dd0..7a5e550330 100644 --- a/crates/rpc/rpc/src/eth/error.rs +++ b/crates/rpc/rpc/src/eth/error.rs @@ -342,7 +342,7 @@ pub enum RpcInvalidTransactionError { /// hardfork. #[error("blob_versioned_hashes is not supported for blocks before the Cancun hardfork")] BlobVersionedHashesNotSupported, - /// Block `blob_gas_price` is greater than tx-specified `max_fee_per_blob_gas` after Cancun. + /// Block `blob_base_fee` is greater than tx-specified `max_fee_per_blob_gas` after Cancun. #[error("max fee per blob gas less than block blob gas fee")] BlobFeeCapTooLow, /// Blob transaction has a versioned hash with an invalid blob