CINCINNATI — Carlos Beltran accepted a trade to the San Francisco Giants, leaving the New York Mets to join his new team after saying goodbye Wednesday.

CINCINNATI — Carlos Beltran accepted a trade to the San Francisco Giants, leaving the New York Mets to join his new team after saying goodbye Wednesday.

The commissioner's office had granted the Mets a 24-hour window to talk to the All-Star outfielder about waiving his no-trade clause. Shortly before an 8-2 win over the Reds on Wednesday night, Beltran arrived in the clubhouse and told his teammates he was on his way to join the World Series champions in Philadelphia.

The deal was expected to be announced this morning.

The Giants will finish a series in Philadelphia tonight, then fly to Cincinnati for a three-game series this weekend, leaving Beltran with a back-and-forth trip.

His new team was eager to greet him.

"Having a guy like Beltran obviously adds a lot of positive energy," Giants closer Brian Wilson said. "With that kind of hitter, you're going to start seeing guys in front of him, guys hitting behind him, getting more pitches."

Beltran, who can become a free agent in the fall, was well aware all season that he would likely wind up on the trading block this summer. But if he was going to leave the Mets, he wanted to play for a postseason contender.

He got his wish — the Giants lead the NL West.

New York's big prize in the trade is pitching prospect Zachary Wheeler, according to a source familiar with the negotiations who spoke on condition of anonymity because the deal hadn't been announced.

Wheeler is 7-5 with a 3.99 ERA in 16 starts for San Francisco's high Class-A affiliate in San Jose. The Giants selected him with the No. 6 pick in the 2009 draft.

San Francisco's offense has been inconsistent and lacking power. The Giants entered Wednesday night's game in Philadelphia batting .241 as a team with only 66 home runs.

The 34-year-old Beltran is in the final year of a $119 million deal he signed with the Mets before the 2005 season. He was plagued by knee injuries the past two seasons, but has been healthy this year.