Trading Legendaries, Pokémon in Pokédex and Shinies require 20,000 Stardust, Legendaries you don’t have or Shiny Legendaries require 1,000,000 Stardust in Pokémon GO

Pokémon GO has introduced social and trading features that allow Trainers to connect with each other by adding friends, sending Gifts and participating in a new Friendship level system that unlocks bonuses. These brand-new features are now available for all players. However, adding Pokémon GO Friends is only currently available for players who are at a Level 40 standing. Trainers can now trade Pokémon with other Trainers nearby, earning a Candy Bonus for the Pokémon received. Niantic wants to know who your first Pokémon GO friend will be, so be sure to let the developer know via social media.

Trading Legendary Pokémon, Pokémon in your Pokédex and Shiny Pokémon require 20,000 Stardust for trading. Legendary Pokémon you don’t have in your Pokédex or Shiny Legendary Pokémon you don’t have require a whopping 1,000,000 Stardust. Standard trades require 100 Stardust. When traded, Legendary Pokémon can drop below the 10/10/10 IV spread that was a minimum upon capturing.

Source: Serebii.net