but teddy could finally build his canal thanks to a hastily drawn agreement in which the united states would give the new nation of panama 10 million dollars for the right to build and operate a transcontinental waterway.