Package io.goodforgod.api.etherscan
Class GasTrackerAPIProvider
java.lang.Object
io.goodforgod.api.etherscan.BasicProvider
io.goodforgod.api.etherscan.GasTrackerAPIProvider
- All Implemented Interfaces:
GasTrackerAPI
GasTracker API Implementation
- Since:
- 14.11.2022
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGasTrackerAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient ethHttpClient, Converter converter, int retryCount) -
Method Summary
Methods inherited from class io.goodforgod.api.etherscan.BasicProvider
convert, getMaximumOffset, getRequestUsingOffset, getResponse, getResponse, getResponse, postRequest, postRequest, postRequest
-
Constructor Details
-
GasTrackerAPIProvider
public GasTrackerAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient ethHttpClient, Converter converter, int retryCount)
-
-
Method Details
-
estimate
Description copied from interface:GasTrackerAPIReturns the estimated time for a transaction to be confirmed on the blockchain.- Specified by:
estimatein interfaceGasTrackerAPI- Returns:
- estimated time
- Throws:
EtherScanException- parent exception class
-
oracle
Description copied from interface:GasTrackerAPIReturns the current Safe, Proposed and Fast gas prices.- Specified by:
oraclein interfaceGasTrackerAPI- Returns:
- fast, suggested gas price
- Throws:
EtherScanException- parent exception class
-