Today’s invention is a bridge which charges tolls to the ships which pass between its piles.
Small boats could pass freely via the shallows on either side.
Larger vessels would have to power their way through gates which would be connected to some weight lifting internal machinery.
In this way, the ships would pay for their passage by expending some work which could be reused by the City to help light its streets etc.