You can do that by buying gold, or frankly buying any stock on the market.
(But even offline, gold transactions would require a great deal of care wrt anti-counterfeiting, and this is an edge case given gold’s primary use is as a speculative store of value.)