In this Nov. 12, 2011photo provided by the U.S. Navy, the Nimitz-class aircraft carrier USS John C. Stennis transits the Straits of Hormuz. The Pentagon on Tuesday answered an Iranian warning to keep U.S. aircraft carriers out of the Persian Gulf by declaring that American warships will continue regularly scheduled deployments to the strategic waterway. (MC3 Kenneth Abbate/AP)

Iran’s parliament said Wednesday that it was preparing a bill that would prohibit all foreign warships from entering the Persian Gulf unless they received permission from the Iranian navy.

The bill, disclosed by the semiofficial Fars News Agency, surfaced a day after Iran’s armed forces commander warned a U.S. nuclear-powered aircraft carrier not to return to the gulf, remarks that rattled commodities markets and helped drive up oil prices.

The proposed legislation suggested that at least some Iranian officials are serious about trying to stop the U.S. Navy from entering the oil-rich gulf waters. Iranian analysts said that the bill probably would not have been introduced if it were not supported by higher authorities.

“If the military vessels and warships of any country want to pass via the Strait of Hormuz without coordination and permission of Iran’s navy forces, they should be stopped by the Iranian armed forces,” Fars quoted lawmaker Nader Qazipour as saying in explaining the bill. He noted that Iran regards the strait as part of its territorial waters and said the bill would be presented to leaders in parliament next week.

Iranian Defense Minister Ahmad Vahidi restated Iran’s position that “transnational forces” have no place in the region. Vahidi also said that Iran is willing to organize joint military drills with neighboring countries, Fars reported Wednesday.

The news agency, which has ties to Iran’s elite Revolutionary Guard Corps, asserted that the carrier USS John C. Stennis, which steamed out of the Persian Gulf last week, had escaped while being “chased by Iranian warships.”

The United States has dismissed as overblown rhetoric Iran’s threats to close the strategic Strait of Hormuz, the narrow entrance to the Persian Gulf, in retaliation for Western sanctions over the country’s uranium-enrichment program.

Iran’s increasingly bellicose tone has coincided with a currency crisis that has forced the government to intervene to prop up the ailing rial. Helping to drive the rial to record lows was U.S. legislation signed Saturday by President Obama that includes a provision for unilateral sanctions against the Central Bank of Iran.

Iran responded by injecting an additional $200 million into the country’s currency markets Wednesday, Fars reported. Although the rial’s rate appeared to stabilize, people involved in trading dollars said they were hanging on to their foreign currency for now.

Many Iranians were trying to buy dollars anyway, but sellers were hard to find.

“Nobody is selling their dollars,” said one exchange office representative who did not want to be identified. “The current rate is artificial.”

The crisis spurred rumors that the job of the governor of the Central Bank of Iran, Mahmoud Bahmani, was in jeopardy. According to Fars, he has asked for more authority to clamp down on “speculation” against the rial.