Donald Trump has a deal for President Barack Obama — if he releases his college and passport records, the New York real estate mogul will contribute $5 million to a charity of Obama’s choice.

Trump made the announcement Wednesday in a video posted to his Twitter account. He called Obama ‘‘the least transparent president in the history of this country,’’ and said the deal would end voters’ questions.

Trump has endorsed Republican Mitt Romney in the presidential race. Trump drew broad publicity last year for questioning whether Obama was born in the U.S. and eligible to be president, forcing Obama to release his long-form birth certificate.

In the video, Trump said he was proud to have pushed Obama to release the birth certificate or quote — ‘‘whatever it may be.’’

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.