Enum Class TransactionSimulationService.SimulationParameters

java.lang.Object
java.lang.Enum<TransactionSimulationService.SimulationParameters>
org.hyperledger.besu.plugin.services.TransactionSimulationService.SimulationParameters
All Implemented Interfaces:
Serializable, Comparable<TransactionSimulationService.SimulationParameters>, Constable
Enclosing interface:
TransactionSimulationService

public static enum TransactionSimulationService.SimulationParameters extends Enum<TransactionSimulationService.SimulationParameters>
Enumeration of simulation parameters that control validation behavior during transaction simulation.

These parameters allow relaxing certain validation rules that would normally cause a transaction to fail, enabling more flexible simulation scenarios for testing, debugging, or analysis purposes.

  • Enum Constant Details

    • ALLOW_EXCEEDING_BALANCE

      public static final TransactionSimulationService.SimulationParameters ALLOW_EXCEEDING_BALANCE
      Allows the transaction to proceed even if the sender's account balance is insufficient to cover the transaction value and gas costs.

      When this parameter is enabled, balance validation is bypassed, allowing simulation of transactions that would normally fail due to insufficient funds.

    • ALLOW_FUTURE_NONCE

      public static final TransactionSimulationService.SimulationParameters ALLOW_FUTURE_NONCE
      Allows the transaction to proceed even if the nonce is higher than the sender's current account nonce.

      When this parameter is enabled, nonce validation is relaxed, allowing simulation of future transactions without requiring all intermediate transactions to be processed first.

    • ALLOW_UNDERPRICED

      public static final TransactionSimulationService.SimulationParameters ALLOW_UNDERPRICED
      Allows the transaction to proceed even if the gas price is below the network's minimum gas price requirements.

      When this parameter is enabled, gas price validation is bypassed, allowing simulation of transactions with artificially low gas prices that would normally be rejected by the network.

  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null