Interface ServiceManager.Block

  • Enclosing class:
    ServiceManager

    public static interface ServiceManager.Block
    • Method Detail

      • getHeight

        long getHeight()
        Get height of the block
        Returns:
        Height of the current block.
      • getTimestamp

        long getTimestamp()
        Get timestamp of the block
        Returns:
        Timestamp of the block in micro-second
      • hashOfTransactionAt

        byte[] hashOfTransactionAt​(int idx)
        Calculate hash of transaction at the index

        It can be used to match transaction hash retrieved by Context.getTransactionHash()

        Parameters:
        idx - Index of the transaction
        Returns:
        the hash value used for the transaction