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. 