tuweni / org.apache.tuweni.evm / HostContext / getBlockHash

getBlockHash

abstract fun getBlockHash(number: Long): Bytes32 (source)

Get block hash function.

This function is used by a VM to query the hash of the header of the given block. If the information about the requested block is not available, then this is signalled by returning zeroed bytes.

Parameters

number - The block hash.

Return
The block hash or zeroed bytes if the information about the block is not available.

abstract fun getBlockHash(): Bytes32 (source)