Package io.goodforgod.api.etherscan
Interface EtherScanAPI.Builder
- Enclosing interface:
- EtherScanAPI
public static interface EtherScanAPI.Builder
-
Method Summary
Modifier and TypeMethodDescription@NotNull EtherScanAPIbuild()@NotNull EtherScanAPI.BuilderwithApiKey(@NotNull String apiKey) @NotNull EtherScanAPI.BuilderwithConverter(@NotNull Supplier<Converter> converterSupplier) @NotNull EtherScanAPI.BuilderwithHttpClient(@NotNull Supplier<EthHttpClient> httpClientSupplier) @NotNull EtherScanAPI.BuilderwithNetwork(@NotNull EthNetwork network) @NotNull EtherScanAPI.BuilderwithNetwork(@NotNull EthNetworks network) @NotNull EtherScanAPI.BuilderwithQueue(@NotNull RequestQueueManager queueManager) withRetryOnRateLimit(@org.jetbrains.annotations.Range(from=0L, to=20L) int maxRetryCount) By default is disabled
-
Method Details
-
withApiKey
-
withNetwork
-
withNetwork
-
withQueue
@NotNull @NotNull EtherScanAPI.Builder withQueue(@NotNull @NotNull RequestQueueManager queueManager) -
withHttpClient
@NotNull @NotNull EtherScanAPI.Builder withHttpClient(@NotNull @NotNull Supplier<EthHttpClient> httpClientSupplier) -
withConverter
@NotNull @NotNull EtherScanAPI.Builder withConverter(@NotNull @NotNull Supplier<Converter> converterSupplier) -
withRetryOnRateLimit
@NotNull EtherScanAPI.Builder withRetryOnRateLimit(@org.jetbrains.annotations.Range(from=0L, to=20L) int maxRetryCount) By default is disabled- Parameters:
maxRetryCount- to retry ifEtherScanRateLimitExceptionthrown- Returns:
- self
-
build
-