Some estimate the market will reach $50 billion over the next decade.

With marijuana legalization measures on the ballot in nine states Tuesday, investment opportunities are attracting money from Wall Street, Silicon Valley and publicly traded companies.

Much of the new money is avoiding direct investment in marijuana cultivation and sales, which remain illegal under federal law. Instead of getting their hands “green,” new investors are putting their money into ancillary products, such as fertilizer, grow lights, software and payroll services.

Investors new to the sector said they are eager for a piece of a market that, by some estimates, will reach $50 billion over the next decade and are looking for ways to claim profits while minimizing legal risks. [Read more at Fortune]