What is the best way to file cryptocurrency sales if you received the cryptocurrency as a payment?

I received an amount of cryptocurrency as payment for work I did on a project. It for was for a friend so I was willing to gamble on it. If I had charged my normal rate for the work and been paid in USD, it would have totaled up to around $3000. At time of receiving the cryptocurrency it was worth right around $650. I sold it off slowly through early last year for a total of just under $9,000. Im not sure how best to file this as I didnt purchase it, any advice would be much appreciated!