NOTES:
When a Solana Program IDL is public, the easiest approach is to submit the IDL to Flipside.
It will decode all the instructions and we can easily look at the data in the solana.core.ez_events_decoded
table.
In cases where the IDL is not public, but the devs were considerate enough to log detailed data, this is what i use at the start of my decoding journey.
Parameters:
program_address
address of the target program
lookback_days
how many days to look back for transactions
IDL Sumit Link:
https://science.flipsidecrypto.xyz/idl-requestor/
instruction_name
: Instruction as named in the transaction loglog_references
: count of times the instruction names shows up in logsinstruction_hex_indentifier
: 16 hexadecimal characters that identify the instruction being called (fetched frominstructions:data
)first_log_reference
: FIRST transaction timestamp where the instruction name is referenced in the logslast_log_reference
: LAST transaction timestamp where the instruction name is referenced in the logssample_tx
: a random transaction id where this instruction is referencedsample_instruction
: a random tx instruction. (might not match thesample_tx
instruction)sample_inner_instruction
: a random inner instruction (might not match thesample_tx
inner instructions)sample_instruction_data
: random full instruction data (base58) (might not match thesample_tx
instruction data)