1. Dry roast the coconut until golden brown. Set aside.
2. In the same pan, dry roast the cumin, coriander, fennel seeds, black peppercorns, cinnamon, cloves, and cardamom until fragrant. Grind to a fine powder.
3. Blend the roasted coconut, ground spices, ginger, and garlic with a little water to make a smooth paste.
4. Heat oil in a large pot. Sauté the onions until golden brown.
5. Add the chicken pieces and cook until they are browned on all sides.
6. Add the spice paste, turmeric powder, red chili powder, and salt. Cook for a few minutes.
7. Add water and bring to a boil. Reduce heat and simmer until the chicken is cooked through and the sauce thickens.
8. Serve hot with rice or bread.