Package io.goodforgod.api.etherscan
Class BlockAPIProvider
java.lang.Object
io.goodforgod.api.etherscan.BasicProvider
io.goodforgod.api.etherscan.BlockAPIProvider
- All Implemented Interfaces:
BlockAPI
Block API Implementation
- Since:
- 28.10.2018
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBlockAPIProvider(RequestQueueManager requestQueueManager, String baseUrl, EthHttpClient executor, Converter converter, int retryCount) -
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<BlockUncle>uncles(long blockNumber) Return uncle blocksMethods inherited from class io.goodforgod.api.etherscan.BasicProvider
convert, getMaximumOffset, getRequestUsingOffset, getResponse, getResponse, getResponse, postRequest, postRequest, postRequest
-
Constructor Details
-
BlockAPIProvider
public BlockAPIProvider(RequestQueueManager requestQueueManager, String baseUrl, EthHttpClient executor, Converter converter, int retryCount)
-
-
Method Details
-
uncles
Description copied from interface:BlockAPIReturn uncle blocks- Specified by:
unclesin interfaceBlockAPI- Parameters:
blockNumber- block number form 0 to last- Returns:
- optional uncle blocks
- Throws:
EtherScanException- parent exception class
-