You still need the fiat exchange value at the time of buying/selling the cryptocurrencies (unless you only assume "token for token" trades), which is not stored on the blockchain.
Disclaimer: I am neither a lawyer nor a tax expert. This is not legal nor tax advice. Talk to a CPA about your tax situation.