TransCanada Corporation, one of the major North American energy companies, has been awarded a contract, along with a Mexican joint-venture partner, Sempra Energy, to build and operate an 800 km offshore pipeline that will deliver natural gas from South Texas to northeastern Mexico.