I am working on solana transactions, i already do a decode instructions using IDL. How to determine the main instruction of a transaction?
I am curious about the third party API like shyft/helius. How they determined it? they have transaction->type on the root of object, and sometimes they don't include all of the instruction on their transaction->actions field.