Run a lime wedge (if using) around rim of each of 4 (6- to 8-oz) glasses. Put salt (if using) on a small plate and dip glasses in salt to lightly coat rims.
Blend liqueur, tequila, juice, and sugar (if using) in a blender until combined. Serve over ice (in coated glasses).