A man has been sentenced in San Diego, California, for conspiring to sell opioids and other drugs over dark web markets for cryptocurrencies.