Decoding instruction data

Hi guys,

Does anyone know how to decode the instruction data which comes back in a parsed transaction? Solscan is able to decode the data to hex and presents it all in a readable format. I was under the impression that it’s base64 encoded but that doesn’t seem to work and returns unknown symbols.

Any help?


Have you played around with the getParsedTransaction method?


Yes the instruction data I’m getting back is from the parseTransactionHistory API but the ‘instruction data’ comes back as raw data.

I solved that issue anyways, it’s base58 encoded and once I decode that it passes through the Borsh deserialise tool fine to give me the expected results. I’m now struggling with the next obstacle, setting up and managing SQL databases in Python :sob:

Thanks for the input!

1 Like