Heat cooking oil in a nonstick pan, fry the red chilies, urad dal till the dal turns slightly brown, add the chopped onions.
Saute well, then add the chopped chilies, fry well.
Next, add the coconut and combine well.
Just when you are switching off the flame, add the salt, hing, and tamarind.
Keep it aside till it cools down.
Then, take it in a mixer and grind to a paste, but not too smooth.