Iranian President Hassan Rouhani reiterated on Sunday that Tehran would remain committed to its 2015 nuclear deal if its interests can be protected and said the US withdrawal from the accord was a "violation of morals".
"The US withdrawal ... is a violation of morals, the correct way to carry out politics and diplomacy and against international regulations," Rouhani during a meeting with visiting Sri Lanka President Maithripala Sirisena.
"If the remaining five countries continue to abide by the agreement, Iran will remain in the deal despite the will of America," Rouhani said in remarks carried by state television.
US President Donald Trump's decision on Tuesday to pull out of the nuclear deal has upset European allies, cast uncertainty over global oil supplies and raised the risk of conflict in the Middle East.
Iran has said it will stay committed to the deal, to which Britain, China, France, Germany and Russia are also signatories, if powers still backing the agreement can ensure it is protected from sanctions against key sectors of its economy such as oil.
Iran FM arrives in China on diplomatic tour
Iran's foreign minister arrived in Beijing on Sunday, Iranian media said, on the first leg of a whirlwind diplomatic tour designed to try and rescue the nuclear deal left on the brink of collapse after the US pulled out.
Mohammad Javad Zarif will later fly to Moscow and Brussels to consult with the remaining signatories to the 2015 agreement denounced by President Donald Trump.
Washington's decision to withdraw from the agreement and reimpose sanctions infuriated its allies in Europe as well as China and Russia.
China was one of the six powers -- with the United States, Russia, France, the UK and Germany -- that signed the historic pact which saw sanctions lifted in return for the commitment by Tehran not to acquire nuclear weapons.
As he arrived in Beijing, Zarif said, "we will discuss the decision that Iran should take", according to the semi-official ISNA news agency.