The IRS treats bitcoin and other cryptocurrency transactions as property and not as currency. As such, you must figure gain on the transaction in the same way as with any other type of property. The IRS posted guidance (https://www.irs.gov/pub/irs-drop/n-14-21.pdf) on this matter several years ago, but may revisit the topic, so stay alert.
Payments within one tax year of the entire amount due to a participant in a qualified retirement plan. Qualifying lump sums may be directly rolled over tax free, or, in some cases, are eligible for current tax under a favorable averaging method.