Package io.goodforgod.api.etherscan
Class ContractAPIProvider
java.lang.Object
io.goodforgod.api.etherscan.BasicProvider
io.goodforgod.api.etherscan.ContractAPIProvider
- All Implemented Interfaces:
ContractAPI
Contract API Implementation
- Since:
- 28.10.2018
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContractAPIProvider(RequestQueueManager requestQueueManager, String baseUrl, EthHttpClient executor, Converter converter, int retryCount) -
Method Summary
Modifier and TypeMethodDescription@NotNull AbicontractAbi(@NotNull String address) Get Verified Contract Sources@NotNull List<ContractCreation>contractCreation(@NotNull List<String> contractAddresses) Returns a contract's deployer address and transaction hash it was created, up to 5 at a time.Methods inherited from class io.goodforgod.api.etherscan.BasicProvider
convert, getMaximumOffset, getRequestUsingOffset, getResponse, getResponse, getResponse, postRequest, postRequest, postRequest
-
Constructor Details
-
ContractAPIProvider
public ContractAPIProvider(RequestQueueManager requestQueueManager, String baseUrl, EthHttpClient executor, Converter converter, int retryCount)
-
-
Method Details
-
contractAbi
@NotNull public @NotNull Abi contractAbi(@NotNull @NotNull String address) throws EtherScanException Description copied from interface:ContractAPIGet Verified Contract Sources- Specified by:
contractAbiin interfaceContractAPI- Parameters:
address- to verify- Returns:
- ABI verified
- Throws:
EtherScanException- parent exception class
-
contractCreation
@NotNull public @NotNull List<ContractCreation> contractCreation(@NotNull @NotNull List<String> contractAddresses) throws EtherScanException Description copied from interface:ContractAPIReturns a contract's deployer address and transaction hash it was created, up to 5 at a time.- Specified by:
contractCreationin interfaceContractAPI- Parameters:
contractAddresses- - list of addresses to fetch- Throws:
EtherScanException- parent exception class
-