Class GasFeeConfig

java.lang.Object
net.finmath.decryptionoracle.config.GasFeeConfig

@Configuration @EnableConfigurationProperties(GasFeeProperties.class) public class GasFeeConfig extends Object
EIP-1559 gas provider with tip floor + capped max fee. No application.properties needed: sensible defaults live in GasFeeProperties.
Author:
Christian Fries
  • Constructor Details

    • GasFeeConfig

      public GasFeeConfig()
  • Method Details

    • contractGasProvider

      @Bean @Primary public org.web3j.tx.gas.ContractEIP1559GasProvider contractGasProvider(org.web3j.protocol.Web3j web3j, GasFeeProperties props)

      contractGasProvider.

      Parameters:
      web3j - a Web3j object
      props - a GasFeeProperties object
      Returns:
      a ContractEIP1559GasProvider object