Which of the following was most instrumental to California becoming a state?

the Louisiana Purchase

the Gold Rush of 1848

the annexation of Texas

the Gadsden Purchase