blocto/solana-go-sdk

How to get SOL transfers from a response getTransaction()

shinhagunn opened this issue · 2 comments

Hi I've a signature of Solana but I dunno how to extract to get all transfers from this signature
My signature I want to read is: 5ma1GRnMsqGSJaNc1LuLaZyuG95gNeKCAHMVyGECFmbwan7vsdzMgpw6SRvchWa3J6upSjxzTSuYVMy5jZpatm7F

image

Thanks for Help

yihau commented

if you only care about balance changes, there are four fields, pre/post balance and pre/post tokenBalance. you can use them to get the effect of this transaction.
if you would like to know more informations, you will need to parse instructions. there are two different instructions when you get a transaction: instruction and inner-instruction.