The Tranent to Cockenzie Waggonway was an early waggonway, possibly the first in Scotland, opened in 1722. It was 2+1⁄2 miles (4 km) miles long and connected coal pits at Tranent with the salt pans at Cockenzie and harbour at Port Seton in East Lothian, Scotland. The track was wooden, and wagons were drawn by horses. The Battle of Prestonpans in 1745 was fought across the line.