Over medium heat, toast the coriander seeds, black peppercorns, cumin seeds, cardamom pods, whole cloves, ground nutmeg, and candlenuts (or alternatives like macadamia nuts or blanched hazelnuts in a dry pan until fragrant. Set aside to cool.
Grind the toasted spices and roasted nuts into a fine powder in either a mortar and pestle or blender.
Add minced garlic, grated ginger, minced shallots, lemongrass, bird’s eye chilies, makrut lime leaf, fresh turmeric (or turmeric powder), and salt. Blend until smooth.
Heat coconut oil in a pan, add the chili paste, and stir-fry until fragrant and the oil separates. Allow it to cool, then store in an airtight container for future use, or portion it and freeze it in an ice cube tray for long-term storage.