Take a wok (kadai) or pan and fry the onion slices, and garlic in either ghee or oil.
Once onions are slightly translucent, add cumin seeds, coriander seed, fenugreek seeds, peppercorns, and cloves, and fry till the raw smell goes off. Once fried, transfer them to a plate to cool.
In the same pan, roast a mix of bedki and madras chillies for a few seconds and then remove to the same plate.
Now, roast the grated coconut till light brown.
Once all the ingredients have cooled, grind them to a fine paste.
Transfer the ground masala to a cooking vessel, add finely chopped onion, salt, turmeric, and the chicken pieces. Mix well and add water to cook the chicken.
Once the chicken is cooked, temper the curry with finely chopped onions fried in ghee.
Serve chicken curry with steamed rice, sannas, mangalorean rotti, or neer dosa.