private Wei getMaxUpfrontGasCost(final long blobGasPerBlock) {
    return getUpfrontGasCost(
        getMaxGasPrice(), getMaxFeePerBlobGas().orElse(Wei.ZERO), blobGasPerBlock);
  }
Calculates the max up-front cost for the gas the transaction can use.

@return the max up-front cost for the gas the transaction can use.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java