Unlike you have permanent residency of some kind (including citizenship obviously), you'll need a visa to work in the United States. A visa is tied to a particular job (although it is transferable in certain circumstances). So be very sure that the contract job you'll be doing is actually legal.
Secondly, a senior programmer in the US could reasonably be expected to earn $100k in salary. That salary will include sick leave (personal days), vacation time, retirement saving (pension/IRA/401k/etc), often the possibility of bonuses and health insurance of some kind.
The last is really important. Do not enter the United States without some kind of health insurance. I'm not kidding when I say you could slip on ice, break your arm badly and be up for $60,000 in medical bills. Traveler's insurance may cover you for a period but if you're working not traveling it may not (ie check).
All of this things are missing from a contract position so you need to factor them in. Without them a typical comparison is $100k in salary equates to about $100/hour contract rate. So if you're getting $50/hour ask yourself this: would you be doing this job for $50k? If not, you probably shouldn't take it.
You will be up for federal taxes, payroll tax (social security; employer and employee contributions), probably state taxes (some states don't have these eg Florida iirc) and possibly local taxes. Cost of living can vary wildly to the point where $30k per year in Iowa will give you a higher standard of living than $80k in a New York City.
Taxes are quite high in the US topping out at about 35-40% marginal rate plus 12.5% (?) payroll tax plus an "employer contribution" of another 12.5% (which you may or may not have to bear as a contractor). "Employer contribution" in this case is just a euphemism for "hidden tax" as it's money you could otherwise be getting but isn't directly visible.