Class BlockchainInfo



  • public class BlockchainInfo
    extends java.lang.Object
    BlockchainInfo contains information about the blockchain ledger.
    • Method Detail

      • getHeight

        public long getHeight​()
        Returns:
        the current ledger blocks height
      • getCurrentBlockHash

        public byte[] getCurrentBlockHash​()
        Returns:
        the current bloch hash
      • getPreviousBlockHash

        public byte[] getPreviousBlockHash​()
        Returns:
        the previous block hash
      • getBlockchainInfo

        public org.hyperledger.fabric.protos.common.Ledger.BlockchainInfo getBlockchainInfo​()
        Returns:
        the protobuf BlockchainInfo struct this object is based on.