Clean the cockles thoroughly and purge them of sand.
Boil the cockles in water until cooked.
Remove the shells from the cooked cockles.
Melt butter in a pan.
Add the cockles, season with salt and pepper, and stir-fry.
Transfer the finished cockle butter to a plate for serving.