Error: "Max Fee Per Gas Less Than Block Base Fee"

When broadcasting a transaction to an EVM chain, you may encounter an error similar to the following:

{
  Could not process transaction id ########,
  error: Error: Returned error: failed with 30414772 gas: max fee per gas less than block base fee:
  address 0x8ed869B2c78ea42FF52788f7f9541e55#####,
  maxFeePerGas: 7950632202,
  baseFee: 15543027274
}

This error occurs because the transaction's maxFeePerGas is set lower than the current block base fee, making it invalid for inclusion in the blockchain.

What Does It Mean?

This error means the transaction is underpriced and has been rejected by the network.

  • Max Fee Per Gas: The maximum amount you're willing to pay per unit of gas for the transaction.
  • Block Base Fee: A dynamically adjusted minimum fee per gas that all transactions must meet or exceed to be processed. This value changes dynamically with network congestion.

Common Causes

  • When Using RPC (eth_sendRawTransaction):
    The maxFeePerGas value in the transaction payload is lower than the network's base fee at the time of submission.
  • When Using Tatum REST API Endpoints:
    Tatum uses gasPrice for both maxFeePerGas and maxPriorityFeePerGas. A low gasPrice can lead to this error.

Steps to resolve this error

Step_1: Check the Current Gas Fees

Use a gas tracker tool or an API to check the current base fee on the network.

Step_2: Retry the Transaction with Updated Fees

Increase the Fees in your transaction so the network nodes will accept it.

Related Sources