You can use either salted or unsalted butter- it all depends on your personal preference. If your pesto already has enough salt, and you’re trying to cut down on your sodium intake, you might want to choose unsalted butter.