tuweni / org.apache.tuweni.eth.repository / BlockchainRepository / findBlockByHashOrNumber

findBlockByHashOrNumber

fun findBlockByHashOrNumber(blockNumberOrBlockHash: Bytes): List<Hash> (source)

Finds a block according to the bytes, which can be a block number or block hash.

Parameters

blockNumberOrBlockHash - the number or hash of the block

Return
the matching blocks