The Opening to China Part I: the First Opium War, the United States, and the Treaty of Wangxia, 1839â1844. 1  The Treaty of Wangxia (Wang-hsia) was the first formal treaty signed between the United States and China in 1844.