Finely chop the tomatoes, removing the seeds first.
In a mixing bowl, combine the chopped tomatoes, ginger-garlic-chilli paste, chopped onion, curry leaves, carom seeds, cumin seeds, coriander powder, turmeric powder, asafoetida powder, coriander leaves, and salt.
Add rice flour and gram flour to the tomato mixture. Mix everything well without adding water initially, as the tomatoes will release moisture. Gradually add a small amount of water to form a batter. The consistency can be slightly thin.
Add red chilli powder to the batter. Whisk the batter for a minute or two. For extra fluffiness, you can add a pinch of baking soda, or alternatively, add two spoons of hot oil or whisk for 2-5 minutes.
Heat oil in a pan over medium heat. Drop small portions of the batter into the hot oil and fry for about two minutes before turning them.
Gently flip the bhaji (pakoda) and continue to fry until they are golden brown.
Remove the bhaji (pakoda) from the oil and serve hot.