public class StaticEIP1559GasProvider extends java.lang.Object implements ContractEIP1559GasProvider
Constructor and Description |
---|
StaticEIP1559GasProvider(long chainId,
java.math.BigInteger maxFeePerGas,
java.math.BigInteger maxPriorityFeePerGas,
java.math.BigInteger gasLimit) |
Modifier and Type | Method and Description |
---|---|
long |
getChainId() |
java.math.BigInteger |
getGasLimit() |
java.math.BigInteger |
getGasLimit(java.lang.String contractFunc) |
java.math.BigInteger |
getGasPrice() |
java.math.BigInteger |
getGasPrice(java.lang.String contractFunc) |
java.math.BigInteger |
getMaxFeePerGas(java.lang.String contractFunc) |
java.math.BigInteger |
getMaxPriorityFeePerGas(java.lang.String contractFunc) |
boolean |
isEIP1559Enabled() |
public StaticEIP1559GasProvider(long chainId, java.math.BigInteger maxFeePerGas, java.math.BigInteger maxPriorityFeePerGas, java.math.BigInteger gasLimit)
public java.math.BigInteger getGasPrice(java.lang.String contractFunc)
getGasPrice
in interface ContractGasProvider
public java.math.BigInteger getGasPrice()
getGasPrice
in interface ContractGasProvider
public java.math.BigInteger getGasLimit(java.lang.String contractFunc)
getGasLimit
in interface ContractGasProvider
public java.math.BigInteger getGasLimit()
getGasLimit
in interface ContractGasProvider
public boolean isEIP1559Enabled()
isEIP1559Enabled
in interface ContractEIP1559GasProvider
public long getChainId()
getChainId
in interface ContractEIP1559GasProvider
public java.math.BigInteger getMaxFeePerGas(java.lang.String contractFunc)
getMaxFeePerGas
in interface ContractEIP1559GasProvider
public java.math.BigInteger getMaxPriorityFeePerGas(java.lang.String contractFunc)
getMaxPriorityFeePerGas
in interface ContractEIP1559GasProvider