In what ways can barter trade mechanisms help India navigate international sanctions and ensure energy and food security?

With U.S. sanctions affecting trade with Iran, exporters are asking for a revival of oil-rice barter trade. I am curious about the effectiveness and limitations of barter trade in such contexts.