In a blender, grind onion, green chilies and ginger together into a smooth paste.
In a wide non-skillet pan, heat the oil, add the paste and fry for 5 minutes until the raw smell of onion goes away.
Add the tomato paste, chili powder, cumin powder, garam masala and the peas along with 1 tbsp water and give it a stir.