Donald Trump has declared the US doesn’t need the help of Australia and other allies who rejected US calls for partners to help take back a major oil-shipping corridor.

In a scathing statement posted to his social media platform Truth Social, the US president blasted Australia and other Indo-Pacific nations for their refusal to get involved in the conflict with Iran.

“The United States has been informed by most of our NATO ‘Allies’ that they don’t want to get involved with our Military Operation against the Terrorist Regime of Iran, in the Middle East,” Mr Trump’s post said.

“We no longer ‘need’ or desire, the NATO Countries’ assistance — WE NEVER DID! Likewise, Japan, Australia, or South Korea.”

Andrew Hastie Trump
Opposition frontbencher Andrew Hastie says Donald Trump is under intense pressure. (Mick Tsikas/AAP PHOTOS)

The conflict, triggered by US-Israeli strikes on Iran, has sent fuel prices skyrocketing globally after the de-facto closure of the Strait of Hormuz due to Tehran’s retaliatory actions.

The US president had requested a naval coalition to help secure the key shipping route, through which about a fifth of the world’s oil supplies travels.

But Treasurer Jim Chalmers deflected Mr Trump’s criticism, saying the government had not considered sending any vessels to protect oil tankers in the strait.

Ministers previously said Australia had not received a formal request from the US to provide a warship.

Opposition frontbencher Andrew Hastie took aim at Mr Trump’s post.

“It was a petulant post from a president under immense pressure … relationships that are longstanding, you show respect and I don’t think it was a respectful post at all,” he told ABC radio on Wednesday.

“We’ve got a proud history and I just don’t think that’s how you treat allies. It’s a reflection on his character more than us.”

Former Liberal prime minister Malcolm Turnbull said Mr Trump was “lashing out”.

“He’s furious that America’s allies are not prepared to support him in a war that he started without their consent or … without any consultation,” he said.

“It really just underlines … the importance of Australia being more independent, exercising our own sovereignty.”