In the era of the Tokugawa shoguns , the canals were used to carry rice and grain in barges for onward shipment to the great markets of Osaka and Edo .
Each year , thousands of tons of rice was carried using the canals .