When it comes to cryptocurrency, a taxable event occurs whenever it is traded for cash
That really depends on the legal residence. There are countries where you have to pay taxes even on the cryptocurrency itself, independently if you exchange it for cash (fiat) or not.