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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.web3j.tx.gas.ContractEIP1559GasProvidercontractGasProvider(org.web3j.protocol.Web3j web3j, GasFeeProperties props) contractGasProvider.
-
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- aWeb3jobjectprops- aGasFeePropertiesobject- Returns:
- a
ContractEIP1559GasProviderobject
-