I'm coding in Hyperledger Fabric 2.4. I need to query the current block height in the chaincode but I didn't find such a function. How can I achieve this?
How can chaincode get the block height in Hyperledger Fabric 2.x?
148 Views Asked by mageover At
2
Chaincode can obtain information about the channel, using the
system chaincode. Thesystem chaincodeis "built-in" when a blockchain network is upchannel information(with block height) can be obtained through the
QSCCsystem chaincode.