In a saucepan, melt the butter over medium heat. Stir in the sugar and cook until mixture is hot (about 110°F to 120°F), but not bubbling.
In a large mixing bowl, whisk eggs, cocoa, salt, baking powder, espresso powder (if using), and vanilla until smooth. Add the hot butter/sugar mixture and stir until smooth. Add the flour and stir until smooth.