Package org.hyperledger.fabric.sdk
Class BlockchainInfo
- java.lang.Object
-
- org.hyperledger.fabric.sdk.BlockchainInfo
-
public class BlockchainInfo extends java.lang.Object
BlockchainInfo 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.BlockchainInfo
getBlockchainInfo()
byte[]
getCurrentBlockHash()
long
getHeight()
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.
-
-