Anquan Boldin, who caught a first-half touchdown in Super Bowl XLVII, will be changing into a 49ers uniform. (Gerald Herbert / AP)

Count Anquan Boldin among those surprised by the news that Anquan Boldin had been traded to the San Francisco 49ers on Monday afternoon.

Boldin learned he was the Baltimore Ravens’ former wide receiver as he was flying to Senegal with Larry Fitzgerald and Roddy White on Oxfam America trip.

“You know, for me, it was an initial shock because I had no clue that I was going to be traded,” Boldin told ESPN producer Ashly Robinson in Africa.

“It was shocking at first…but for me it is also a good thing,” Boldin said. “You know, when I look t the organization and what they’re about and as a football team, the talent that they have…I think it’s a good, a good place for me to be. I actually found out as I got off the plane last night.

“Finally arriving here in Senegal, you know, there was a bunch of text messages coming through saying, you know, congratulations on getting traded to San Francisco, things like that. So … I found out, I guess, through text messages.”

He took a moment to make a classy exit from Baltimore on Twitter:

49ers quarterback Colin Kaepernick was nearly as surprised to learn of the trade during his daylong visit to ESPN’s Bristol, Conn., headquarters.

“If it’s true, it’s a great trade,” Kaepernick said. “We’re happy to have him. Having a playmaker like that at receiver is something you always want. It’s another weapon for our offense and our team.”

Like nearly everyone else, Kaepernick was surprised by the price the 49ers paid for a receiver who caught 65 passes for 921 yards and four touchdowns last season. In the Ravens’ Super Bowl run, Boldin, 32, caught 16 passes for 276 yards and three TDs.

“He’s a great player,” Kaepernick said. “I don’t think you’re going to find anybody in the sixth round to come in and play better than what he’s doing right now.”

The Ravens are expected to get a sixth-round draft pick for Boldin when the trade, which is contingent on Boldin passing a physical after the Africa trip, goes through. Trades can become final at 4 p.m. EDT, when the league’s new year begins.