Heat 4 tbsp oil in a pan, when the oil is hot, add mustard seed when it splutter, reduce heat to medium
Add 1 tbsp crushed ginger, 1 1/2 tbsp crushed garlic, and 1/4 tsp crushed fennel seeds
Saute for 2 minutes, then add 5 medium sizes sliced onion,2 green chilies slit lengthwise, curry leaves, and 1 tsp salt.
Saute the onion until it start to get brown color. The onion will take sometime to roast but that is the main flavour of egg roast, it will take about 15-20 minutes over medium heat.
Once the onion is light golden brown, reduce heat to LOW
Then add all dry spices, 1/4 tsp turmeric, 1 tsp chili powder, 1 1/2 tablespoon kashmiri chili powder, 2 tsp coriander powder, 1/2 tsp garam masala, and saute for 2 minutes or until the raw smell of masala goes.
Add 1 chopped tomatoes, mix all together and cover with a lid. Cook tomatoes until it is mushy, stirring often, over medium heat.
When the oil starts separating from all the masala, add 1/4 cup hot water, 1/2 tsp lemon juice or vinegar, 1/2 tsp black pepper. Stir together for another minute or until all water evaporates.
Check for spices and salt, adjust to your taste
Add boiled, peeled eggs
Saute for few more minutes until the oil start separating and the masala roasted very well, over medium heat.
Turn off heat. Cover the egg with onion mix. Let it rest for 15 minutes before serving.
Serve with pathiri, appam, rice etc.