Heat oil in a pan and temper with mustard seeds, cumin seeds & peppercorns (opt). After it stops spluttering, add the urad dal and asafoetida. Saute for a few seconds. Add the onion, curry leaves, ginger, garlic, chilies (opt) and fried peanuts. Fry till light brown.