From the Super Mario Wiki
The Golden Hammer is an item that first appeared in Famicom game Wrecking Crew and reappears in the Wii game Super Smash Bros. Brawl. It is based on the Hammers found in the Mario series, which had the same uses and effects. It is similar to the Hammer from previous Super Smash Bros. games, except that the Golden Hammer is far more efficient. It stands on a pedestal, and when picked up, the player starts swinging the hammer up and down, devastating anyone who gets hit. It is swung faster than a normal Hammer. Repeatedly tapping the item button will allow the player to float in mid-air while holding this item, unlike the hammer. Each hit does 30% damage. It launches characters at a more horizontal line than a regular Hammer. Although the head does not fly off like the regular Hammer, it does have one other problem that will randomly occur; it will become the Golden Squeaky Hammer. The Golden Squeaky Hammer will only squeak if it hits someone instead of doing damage. However, it can still allow the player to float in midair.
The Golden Hammer can also be used to open the windows in Challenges. They can be earned by completing challenges that have windows containing Golden Hammers, which there are only five of. However, Golden Hammers cannot break windows that pertain to challenges related to Boss Battle Mode. However, PAL versions of the game do not have this limitation.
Golden Hammers bear a resemblance to the Ultra Hammer of Paper Mario and Paper Mario: The Thousand-Year Door.
Oddly, the Super Smash Bros. Brawl trophy states that the Golden Hammer "glows with golden light"; this is completely false, as only the pedestal glows, and even then the light is a greenish-blue rather than gold, and the hammer itself does not glow at all.
Trophy Information from Super Smash Bros. Brawl
| Golden Hammer
|| NES Wrecking Crew
|| A hammer that glows with golden light. It's easier to swing than a normal hammer, and more powerful too. If you tilt the Control Stick and press the attack button repeatedly, you float in midair. It's a very powerful item, but one that rarely appears. There's also a Golden Squeaky Hammer that does absolutely no damage at all. It's what you would call a fake.