01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - Process 4.2 oz pistachios in a food processor until finely ground. Reserve 1-2 tbsp for garnish.
03 - Sift together flour, baking powder, and salt in a bowl. Stir in the ground pistachios.
04 - Beat 3.9 oz butter and ¾ cup sugar in a large bowl until light and fluffy, approximately 3 minutes.
05 - Add eggs one at a time, beating well after each addition. Mix in vanilla extract.
06 - Add dry ingredients in two batches, alternating with ½ cup milk, beginning and ending with flour mixture.
07 - Distribute batter evenly among prepared cupcake liners.
08 - Bake for 18-20 minutes until a toothpick inserted in the center emerges clean. Allow to cool completely.
09 - Finely grind 3.5 oz pistachios for the frosting, leaving slightly coarse if texture is desired.
10 - Beat 8 oz butter until smooth and creamy. Gradually incorporate powdered sugar, beating until combined.
11 - Mix in ground pistachios, vanilla, pinch of salt, and 2 tbsp milk. Whip until fluffy, adding additional milk to achieve desired consistency.
12 - Pipe or spread buttercream onto cooled cupcakes. Garnish with reserved ground pistachios.