All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.api.etherscan.core.ITransactionApi Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
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 transaction hash
     * @return optional status result
     * @throws ApiException parent exception class
     */
    @NotNull
    Optional execStatus(String txhash) throws ApiException;

    /**
     * Check Transaction Receipt Status (Only applicable for Post Byzantium fork transactions)
     * 
     * @param txhash transaction hash
     * @return 0 = Fail, 1 = Pass, empty value for pre-byzantium fork
     * @throws ApiException parent exception class
     */
    @NotNull
    Optional receiptStatus(String txhash) throws ApiException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy