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 .
The markets of Osaka and Edo were supplied by rice and grain using the canals .