Prepare the Chicken: Wash the chicken thoroughly, including inside the breast cavity. Blanch the chicken by pouring boiling water over it to tighten the skin, ensuring even color absorption and crispier skin after cooking.
Prepare Aromatics: Crush the star anise, cut green onions into batons, slice the ginger, and quarter the shallots.
Fry Aromatics: Heat oil in a wok, then add ginger, shallots, star anise, and green onions in sequence, frying each for a few seconds to minutes before adding the next.
Add Liquids: Add rice wine, then light soy sauce, followed by hot water. Add rock sugar and let it dissolve. Adjust the sauce's color with dark soy sauce, then add more rice wine.
Cook the Chicken: Place the chicken in the sauce, ladle the sauce over to cover all sides. Simmer on low heat for 15 minutes, flip the chicken, and simmer for another 15 minutes. Flip again if necessary for even cooking.
Finish and Serve: After the chicken has soaked in the sauce for a total of about 45 minutes and is fully cooked, remove from heat. Let it cool slightly before cutting into pieces. Serve with the sauce ladled over the chicken.