On H-1B you must work for your employer and have W2 from them. Besides, you can invest, have interest income, can be a passive investor in start ups, and many things. Disclose all the incomes when filing taxes.