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 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