Package io.goodforgod.api.etherscan
Class TransactionAPIProvider
java.lang.Object
io.goodforgod.api.etherscan.BasicProvider
io.goodforgod.api.etherscan.TransactionAPIProvider
- All Implemented Interfaces:
TransactionAPI
Transaction API Implementation
- Since:
- 28.10.2018
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient executor, Converter converter, int retryCount) -
Method Summary
Modifier and TypeMethodDescriptionstatusExec(@NotNull String txhash) Check Contract Execution Status (if there was an error during contract execution)statusReceipt(@NotNull String txhash) Check Transaction Receipt Status (Only applicable for Post Byzantium fork transactions)Methods inherited from class io.goodforgod.api.etherscan.BasicProvider
convert, getMaximumOffset, getRequestUsingOffset, getResponse, getResponse, getResponse, postRequest, postRequest, postRequest
-
Constructor Details
-
TransactionAPIProvider
public TransactionAPIProvider(RequestQueueManager queue, String baseUrl, EthHttpClient executor, Converter converter, int retryCount)
-
-
Method Details
-
statusExec
@NotNull public @NotNull Optional<Status> statusExec(@NotNull @NotNull String txhash) throws EtherScanException Description copied from interface:TransactionAPICheck Contract Execution Status (if there was an error during contract execution)- Specified by:
statusExecin interfaceTransactionAPI- Parameters:
txhash- transaction hash- Returns:
- optional status result
- Throws:
EtherScanException- parent exception class
-
statusReceipt
@NotNull public @NotNull Optional<Boolean> statusReceipt(@NotNull @NotNull String txhash) throws EtherScanException Description copied from interface:TransactionAPICheck Transaction Receipt Status (Only applicable for Post Byzantium fork transactions)- Specified by:
statusReceiptin interfaceTransactionAPI- Parameters:
txhash- transaction hash- Returns:
- 0 = Fail, 1 = Pass, empty value for pre-byzantium fork
- Throws:
EtherScanException- parent exception class
-