public Wei getMaxGasPrice() {
    return maxFeePerGas.orElseGet(
        () ->
            gasPrice.orElseThrow(
                () ->
                    new IllegalStateException(
                        "Transaction requires either gasPrice or maxFeePerGas")));
  }
Return the maximum fee per gas the sender is willing to pay for this transaction.

@return max fee per gas in wei
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java