explorer
explorer copied to clipboard
explorer: token history repeats tx signature
Example:
https://explorer.solana.com/address/JAVUMWaYbpq8sEtnNUkbbeSRBKHMrBTW5uVQRy5SKoMW/tokens
Context:
https://discord.com/channels/428295358100013066/531947850007969828/1055905404317614202
cc @t-nelson
The reason why the tx signatures are repeated (10 times in this case) is because each unique tx signature for the transaction corresponds to 10 Token Program: Mint To instructions. The code extracts the name of the instruction (Mint To) and any inner instructions that exist for each instruction per unique tx signature. So that's why we have 10 rows that look identical but technically correspond to 10 different instructions for every tx signature.
What would be the desired behaviour though?
cc @t-nelson
could we collapse them into one entry, similarly to how inner instructions are treated?

We could flat map all the instructions such that every instruction (including inner instructions) corresponds to a separate row with hyperlinks to that specific instruction. This would be consistent with the serial order in which all the instructions are executed. Would this solve the issue?
cc @t-nelson
i think it's more important to retain the instruction hierarchy than the links. i don't personally see any value in being able to navigate to a particular instruction from that page. that is, i don't care which instructions touch a token account, just which transactions do.
Each transaction with more than one instruction can be expanded as shown in the screenshot. The inner instructions expand as they did before. Would this be consistent to what you had in mind?

cc @t-nelson