Neither. It was selling off a conquered continent to new settlers. Then selling those settlers goods and services. Then financing that territory, homes, goods, services, and educations.

Even today the primary driver of the american economy and the reason for american consumption is housing.

https://www.quora.com/What-was-the-main-cause-of-America-s-rise-of-capitalism-steel-oil-or-railways