Blend the aromatics: Add the chillies, onion, garlic and ginger to a food processor. Blitz until finely chopped.
Start the jam: Transfer the mixture to a large saucepan. Add the sugar, white wine vinegar, balsamic vinegar, fish sauce and lime juice.
Dissolve the sugar: Place over medium heat and stir gently until the sugar has completely dissolved.
Cook the jam: Increase the heat and bring to a boil. Reduce to medium low and simmer for 35 to 40 minutes, stirring occasionally, until thick and jammy. The jam should coat the back of a spoon and fall in thick drops. It will continue to thicken as it cools.
Jar and seal: Spoon the hot jam into hot, sterilised jars. Seal immediately and invert for 2 minutes. Turn upright and allow to cool completely.
Store: Keep unopened jars in a cool, dark place for up to 6 months. Once opened, refrigerate and use within 2 months for best flavour.