Package org.web3j.tx.gas
Class StaticGasProvider
- java.lang.Object
-
- org.web3j.tx.gas.StaticGasProvider
-
- All Implemented Interfaces:
ContractGasProvider
- Direct Known Subclasses:
DefaultGasProvider
public class StaticGasProvider extends java.lang.Object implements ContractGasProvider
-
-
Constructor Summary
Constructors Constructor Description StaticGasProvider(java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getGasLimit()
java.math.BigInteger
getGasLimit(java.lang.String contractFunc)
java.math.BigInteger
getGasPrice()
java.math.BigInteger
getGasPrice(java.lang.String contractFunc)
-
-
-
Method Detail
-
getGasPrice
public java.math.BigInteger getGasPrice(java.lang.String contractFunc)
- Specified by:
getGasPrice
in interfaceContractGasProvider
-
getGasPrice
public java.math.BigInteger getGasPrice()
- Specified by:
getGasPrice
in interfaceContractGasProvider
-
getGasLimit
public java.math.BigInteger getGasLimit(java.lang.String contractFunc)
- Specified by:
getGasLimit
in interfaceContractGasProvider
-
getGasLimit
public java.math.BigInteger getGasLimit()
- Specified by:
getGasLimit
in interfaceContractGasProvider
-
-