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 TypeMethodDescriptionlong
getGasLimit
(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:
getGasPrice
in interfaceContractGasProvider
-
getGasPrice
- Specified by:
getGasPrice
in interfaceContractGasProvider
-
getGasLimit
- Specified by:
getGasLimit
in interfaceContractGasProvider
-
getGasLimit
- Specified by:
getGasLimit
in interfaceContractGasProvider
-
isEIP1559Enabled
public boolean isEIP1559Enabled()- Specified by:
isEIP1559Enabled
in interfaceContractEIP1559GasProvider
-
getChainId
public long getChainId()- Specified by:
getChainId
in interfaceContractEIP1559GasProvider
-
getMaxFeePerGas
- Specified by:
getMaxFeePerGas
in interfaceContractEIP1559GasProvider
-
getMaxPriorityFeePerGas
- Specified by:
getMaxPriorityFeePerGas
in interfaceContractEIP1559GasProvider
-