Yoshinobu Yamamoto and the Los Angeles Dodgers have agreed to a 12-year, $325 million deal. As part of the deal, the Dodgers will pay the Orix Buffaloes a $50.6 million posting fee.

Yamamoto, who has a pair of opt-outs in the contract, will receive a $50 million signing bonus. The deal contains no deferred money.

The New York Mets offered a similar contract to Yamamoto as the Dodgers, while the New York Yankees offered $300 million despite being the prohibitive favorite. 

The Philadelphia Phillies, San Francisco Giants, Boston Red Sox and Toronto Blue Jays were in the bidding.

The Dodgers previously signed Shohei Ohtani this offseason.