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

io.api.etherscan.core.IBlockApi 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.UncleBlock;
import org.jetbrains.annotations.NotNull;

import java.util.Optional;

/**
 * EtherScan - API Descriptions https://etherscan.io/apis#blocks
 *
 * @author GoodforGod
 * @since 30.10.2018
 */
public interface IBlockApi {

    /**
     * Return uncle blocks
     * 
     * @param blockNumber block number form 0 to last
     * @return optional uncle blocks
     * @throws ApiException parent exception class
     */
    @NotNull
    Optional uncles(long blockNumber) throws ApiException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy