Rinse the urad dal and soak it in plenty of water for 3 to 4 hours.
Drain the dal and grind it in a blender with as little water as possible, stopping to scrape down the sides, until smooth and fluffy.
Transfer the batter to a bowl and whisk it for a minute. Stir in the green chillies, ginger, curry leaves, coriander, cumin, salt, asafoetida and rice flour if using.
Wet your hands, take a lemon-sized ball of batter and shape it into a round. Press a hole through the centre with a wet thumb to make the classic doughnut shape.
Heat oil in a deep pan over medium heat. The oil is ready when a small drop of batter rises to the surface at once.
Slide the vadas into the hot oil, a few at a time, and fry for 3 to 4 minutes, turning them once, until golden brown and crisp.
Lift them out with a slotted spoon, drain on paper towel and serve hot with sambar and coconut chutney.