China said on Saturday it will ban exports of some petroleum products to North Korea , as well as imports of textiles from the isolated North, to comply with a United Nations Security Council resolution after Pyongyang's latest nuclear test .

Chinese vendors sell North Korea and China flags on the boardwalk in the border city of Dandong, China.

The announcement from Beijing came at the end of a week that saw tensions ratchet up between the United States and North Korea, with the leaders of both countries trading insults.

The Ministry of Commerce said in a statement on its website that China would limit exports of refined petroleum products from Oct. 1 and ban exports of condensates and liquefied natural gas immediately to comply with the latest U.N. sanctions.

Imports of textiles from North Korea would also be banned immediately, the statement said.

Textile trade contracts signed before Sept. 11 would be respected if import formalities are completed before midnight on Dec. 10, the statement said.

The moves follow the adoption of a unanimous UN Security Council agreement on sanctions after the isolated North conducted its sixth and most powerful nuclear test on Sept. 3.

That resolution imposed a ban on condensates and natural gas liquids, a cap of 2 million barrels a year on refined petroleum products and a cap on crude oil exports to North Korea at current levels.

On Saturday as well, China's General Administration of Customs reported the country's total trade with North Korea was $604.27 million in August, up from $456.16 million a month earlier.

Its total trade with North Korea was worth $3.61 billion in the first eight months of the year, up 7.5 percent from the same period a year earlier.

Russia urged calm on Friday after U.S. President Donald Trump called North Korean leader Kim Jong Un a "madman". Kim had called Trump a "mentally deranged U.S. dotard" a day earlier after Trump said Washington would "totally destroy" North Korea if it threatened the United States or its allies.