Package io.goodforgod.api.etherscan
Class EthScanAPIBuilder
java.lang.Object
io.goodforgod.api.etherscan.EthScanAPIBuilder
- All Implemented Interfaces:
EtherScanAPI.Builder
- Since:
- 11.05.2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull EtherScanAPIbuild()withApiKey(@NotNull String apiKey) withConverter(@NotNull Supplier<Converter> converterSupplier) withHttpClient(@NotNull Supplier<EthHttpClient> httpClientSupplier) withNetwork(@NotNull EthNetwork network) withNetwork(@NotNull EthNetworks network) withQueue(@NotNull RequestQueueManager queueManager) withRetryOnRateLimit(int maxRetryCount) By default is disabled
-
Constructor Details
-
EthScanAPIBuilder
-
-
Method Details
-
withApiKey
- Specified by:
withApiKeyin interfaceEtherScanAPI.Builder
-
withNetwork
- Specified by:
withNetworkin interfaceEtherScanAPI.Builder
-
withNetwork
- Specified by:
withNetworkin interfaceEtherScanAPI.Builder
-
withQueue
- Specified by:
withQueuein interfaceEtherScanAPI.Builder
-
withHttpClient
@NotNull public EtherScanAPI.Builder withHttpClient(@NotNull @NotNull Supplier<EthHttpClient> httpClientSupplier) - Specified by:
withHttpClientin interfaceEtherScanAPI.Builder
-
withConverter
@NotNull public EtherScanAPI.Builder withConverter(@NotNull @NotNull Supplier<Converter> converterSupplier) - Specified by:
withConverterin interfaceEtherScanAPI.Builder
-
withRetryOnRateLimit
Description copied from interface:EtherScanAPI.BuilderBy default is disabled- Specified by:
withRetryOnRateLimitin interfaceEtherScanAPI.Builder- Parameters:
maxRetryCount- to retry ifEtherScanRateLimitExceptionthrown- Returns:
- self
-
build
- Specified by:
buildin interfaceEtherScanAPI.Builder
-