io.api.etherscan.core.ITransactionApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-etherscan-api Show documentation
Show all versions of java-etherscan-api Show documentation
Library is a wrapper for EtherScan API.
package io.api.etherscan.core;
import io.api.etherscan.error.ApiException;
import io.api.etherscan.model.Status;
import org.jetbrains.annotations.NotNull;
import java.util.Optional;
/**
* EtherScan - API Descriptions
* https://etherscan.io/apis#transactions
*
* @author GoodforGod
* @since 30.10.2018
*/
public interface ITransactionApi {
/**
* Check Contract Execution Status (if there was an error during contract execution)
* @param txhash to look for
* @return exec status
*/
@NotNull Optional execStatus(String txhash) throws ApiException;
/**
* Check Transaction Receipt Status (Only applicable for Post Byzantium fork transactions)
* 0 = Fail, 1 = Pass
* empty value for pre-byzantium fork
* @param txhash to look for
* @return status as boolean
*/
@NotNull Optional receiptStatus(String txhash) throws ApiException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy