Class BlockApiProvider

  • All Implemented Interfaces:
    IBlockApi

    public class BlockApiProvider
    extends java.lang.Object
    implements IBlockApi
    Block API Implementation
    Since:
    28.10.2018
    Author:
    GoodforGod
    See Also:
    IBlockApi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<UncleBlock> uncles​(long blockNumber)
      Return uncle blocks
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • uncles

        @NotNull
        public java.util.Optional<UncleBlock> uncles​(long blockNumber)
                                              throws ApiException
        Description copied from interface: IBlockApi
        Return uncle blocks
        Specified by:
        uncles in interface IBlockApi
        Parameters:
        blockNumber - block number
        Returns:
        uncle block
        Throws:
        ApiException