Terraria item ID 2891. Terraria 1.4.5.7.
The Gold Butterfly is a harmless critter. It is a golden recolor of the ordinary Butterfly, with a 1/400 (0.25%) chance of spawning in place of the ordinary version. The Gold Butterfly has only 5 health and no defense, and can be damaged by other enemies and players. The Gold Butterfly can be caught with any Bug Net to be carried around in the inventory and released later, or crafted into animated decorative furniture (Gold Butterfly Jar). Once crafted, the Gold Butterfly cannot be released again, unless the furniture item is de-crafted via Shimmer.
Description from the Terraria Wiki.