How to decompile a transaction?

How to decompile a Solana transaction? It could be a random one, found at solscan.

Is there a foolproof way?
If not, what are other options?

What do you mean decompile a transaction?

Do you mean inspect the data of the transaction, or actually decompile the smart contract that processes the transaction?