private static List<TransactionResult> createHashTransactionResults(final Block block) {
    return block.getBody().getTransactions().stream()
        .map(transaction -> new TransactionHashResult(transaction.getHash().toString()))
        .collect(Collectors.toList());
  }
Generates a list of {@link TransactionResult} objects containing only the transaction hashes
for each transaction in the block.

@param block the block containing the transactions
@return a list of {@link TransactionResult} objects with only transaction hashes
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/BlockStateCallResult.java