During the gold rush, the most money was made by shovel sellers.
For example, Sam Brannan, the owner of a store that served gold miners in the town near where gold was found, bought up all the pickaxes and shovels in the area a week before his march through San Francisco. By selling equipment and tools to gold miners, Sam Brannan amassed a fortune.