I'm working on a project in Node.js executed within a browser, where I'm attempting to process transactions received from various applications and display what they initiate, similar to how wallets like Phantom do. For example, displaying a swap of 2 SOL for 200 USDC, or the sending of 2 SOL. However, I find myself a bit lost when dealing with the transaction object itself.
Specifically, I'm struggling to understand how the compiledInstructions within a transaction manage the multitude of staticAccountKeys, especially in complex operations like swaps through platforms such as Jupiter.
If anyone could provide some guidance or tips on how to achieve the analysis and display of transaction actions to users, that would be greatly appreciated. Currently, I'm not clear on how to interpret these transactions accurately to extract and display meaningful action descriptions from them.
Thank you in advance for any help you can offer !