There's tons of jobs in Canada that pay better then software jobs in North Dakota... But in pure dollar amount, you're not going to beat a Google or Facebook job in SV. Best you could do is work remotely for an SV company.
That said, remember that if you're an actual american citizen, they will tax your foreign income and a programmer with a lot of experience can hit revenues where they actually have to remit money to the IRS in addition to the cost of compliance (which can itself be significant.)