Package org.web3j.tx.gas
Class StaticEIP1559GasProvider
java.lang.Object
org.web3j.tx.gas.StaticEIP1559GasProvider
- All Implemented Interfaces:
ContractEIP1559GasProvider,ContractGasProvider
-
Constructor Summary
ConstructorsConstructorDescriptionStaticEIP1559GasProvider(long chainId, BigInteger maxFeePerGas, BigInteger maxPriorityFeePerGas, BigInteger gasLimit) -
Method Summary
Modifier and TypeMethodDescriptionlonggetGasLimit(String contractFunc) getGasPrice(String contractFunc) getMaxFeePerGas(String contractFunc) getMaxPriorityFeePerGas(String contractFunc) boolean
-
Constructor Details
-
StaticEIP1559GasProvider
public StaticEIP1559GasProvider(long chainId, BigInteger maxFeePerGas, BigInteger maxPriorityFeePerGas, BigInteger gasLimit)
-
-
Method Details
-
getGasPrice
- Specified by:
getGasPricein interfaceContractGasProvider
-
getGasPrice
- Specified by:
getGasPricein interfaceContractGasProvider
-
getGasLimit
- Specified by:
getGasLimitin interfaceContractGasProvider
-
getGasLimit
- Specified by:
getGasLimitin interfaceContractGasProvider
-
isEIP1559Enabled
public boolean isEIP1559Enabled()- Specified by:
isEIP1559Enabledin interfaceContractEIP1559GasProvider
-
getChainId
public long getChainId()- Specified by:
getChainIdin interfaceContractEIP1559GasProvider
-
getMaxFeePerGas
- Specified by:
getMaxFeePerGasin interfaceContractEIP1559GasProvider
-
getMaxPriorityFeePerGas
- Specified by:
getMaxPriorityFeePerGasin interfaceContractEIP1559GasProvider
-