Terraria item ID 164. Terraria 1.4.5.7.
The Handgun is a pre-Hardmode gun that has a 1/7 (14.29%) chance of being obtained from Locked Gold Chests in the Dungeon, and from Golden Lock Boxes found in Dungeon Crates or Stockade Crates. Its best modifier is Unreal.
Description from the Terraria Wiki.