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