Package org.hyperledger.fabric.sdk
Class BlockchainInfo
- java.lang.Object
 - 
- org.hyperledger.fabric.sdk.BlockchainInfo
 
 
- 
public class BlockchainInfo extends java.lang.ObjectBlockchainInfo contains information about the blockchain ledger. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hyperledger.fabric.protos.common.Ledger.BlockchainInfogetBlockchainInfo()byte[]getCurrentBlockHash()longgetHeight()byte[]getPreviousBlockHash() 
 - 
 
- 
- 
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.
 
 
 - 
 
 -