Is the melting of candle wax an exothermic or endothermic reaction?

I was just wondering because my logic was that it is an endothermic reaction because the wax is absorbing the energy (heat) from the fire on the wick, causing it to melt and turn into a liquid. Is my logic correct? Or is it exothermic because the fire on the wick is releasing energy (heat)? But I was thinking that it couldn't be exothermic because the fire is the only thing releasing energy, not the actual reaction (the fire/heat with the wax ).

Can someone please clarify this for me?