Associates of donald trump told julian assange the us president would pardon the wikileaks founder if he revealed the source for the hacking of the democratic national committee emails in the run-up to the us presidential election in 2016, a london court was told.

Mr assange is fighting extradition to the us to stand trial on espionage and computer hacking charges relating to the 2010 publication of a huge cache of classified government documents. a london court is hearing arguments from his legal team about why he should not be extradited.

The sworn-in witness testimony, which repeats allegations made by mr assanges legal team in pre-trial hearings earlier this year, is designed to bolster his line of defence that the trump administrations pursuit of the wikileaks founder is politically motivated. mr assanges lawyers say the us prosecution reverses a 2013 decision not to prosecute him, made by former president barack obama.

Jennifer robinson, a barrister acting for mr assange, on friday testified that in august 2017 she and mr assange met former congressman dana rohrabacher and charles johnson, a trump associate, in the ecuadorean embassy in london where he was in hiding.

At the time mr trump and his campaign team were being probed by robert mueller, us special counsel, for their possible involvement in russian interference in the 2016 us election.

Congressman rohrabacher and mr johnson made clear that they wanted us to believe they were acting on behalf of the president, ms robinson said in a statement read out during mr assanges extradition hearing at westminster magistrates court on friday. they stated that president trump was aware of and had approved of them coming to meet mr assange to discuss a proposal and that they would have an audience with the president to discuss the matter on their return to washington dc.

The us congressman told mr assange he wanted to end the ongoing speculation about russian involvement in a leak of documents stolen from the us democratic party and published by wikileaks during the 2016 us presidential election, ms robinson said.

Mr rohrabacher told them he was meeting with mr assange to talk about what might be necessary to get him out and presented what he called a win-win solution which could allow mr assange to leave the embassy and get on with his life without fear of an us indictment and extradition request, ms robinson testified.

Mr rohrabacher wanted mr assange to identify the source of the dnc leaks in return for a pardon which would both benefit president trump politically and prevent us indictment and extradition, ms robinson added. mr assange did not disclose the source, she said.

James lewis qc, acting for the us government, said the us government did not contest these things were said, adding: we obviously do not accept the truth of what was said by others.

The white house and mr rohrabacher did not immediately respond to emails seeking comments on friday. in february they denied that mr trump had offered mr assange a pardon. at no time did i offer julian assange anything from the president because i had not spoken with the president about this issue at all, mr rohrabacher said then.

Mr assange faces one count of computer hacking and 17 allegations of violating the 1917 espionage act. the charges carry a maximum jail term of 175 years, though mr assange would likely receive a shorter sentence.the hearing continues.