Heat oil in a saucepan. Add the onions and fry gently for 3 minutes but do not let them color. Add the chilies, ginger and salt. Stir well and then pour in the coconut mixture.
Add the chicken pieces and simmer gently for 3 minutes, or until cooked through. Stir occasionally and if there is any hint of the sauce catching the bottom of pan, add a little water.
When chicken pieces are done, remove from the heat, stir in the lime juice and serve immediately.