Heat the oil or ghee in a sauté pan, and add the onion. Fry for about 5 minutes, then add the chopped tomato, if using, and the bafat spice mix.
Fry gently for about 5 – 7 minutes, then add the chickpeas, hot water and tamarind concentrate. Cook together for 2 – 3 minutes, then add the grated palm sugar. Stir, then season to taste with salt.
Add the desiccated coconut, and stir together until the coconut starts absorbing some of the sauce. Stir in the caramelized onions.
Meanwhile, heat the oil for the garnish in a small pan, and add the curry leaves. Fry together for 30 seconds, then pour it over the chickpeas, with a quick stir.
Serve with rice or Indian breads.