tuweni / org.apache.tuweni.eth.repository / BlockchainIndex / totalDifficulty

totalDifficulty

fun totalDifficulty(hash: Bytes): UInt256? (source)

Retrieves the total difficulty of the block header, if it has been computed.

Parameters

hash - the hash of the header

Return
the total difficulty of the header if it could be computed.