Crypto

If I sell my crypto and use some of it to put a downpayment on a home, what exactly is getting taxed?